Struct brane_ast::state::ClassState
source · pub struct ClassState {
pub name: String,
pub props: Vec<VarState>,
pub methods: Vec<usize>,
pub package_name: Option<String>,
pub package_version: Option<Version>,
pub range: TextRange,
}
Expand description
Defines whatever we need to know of a class in between workflow snippet calls.
Fields§
§name: String
The name of the class.
props: Vec<VarState>
The list of properties in this class.
methods: Vec<usize>
The list of methods in this class (as references to the global class list)
package_name: Option<String>
If this class is imported from a package, then the package’s name is stored here.
package_version: Option<Version>
If this class is imported from a package, then the package’s version is stored here.
range: TextRange
The range that links this class back to the source text.
Implementations§
source§impl ClassState
impl ClassState
sourcepub fn into_entry(&self, funcs: &[FunctionState]) -> ClassEntry
pub fn into_entry(&self, funcs: &[FunctionState]) -> ClassEntry
Trait Implementations§
source§impl Clone for ClassState
impl Clone for ClassState
source§fn clone(&self) -> ClassState
fn clone(&self) -> ClassState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClassState
impl Debug for ClassState
source§impl From<ClassState> for ClassDef
impl From<ClassState> for ClassDef
source§fn from(value: ClassState) -> Self
fn from(value: ClassState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClassState
impl RefUnwindSafe for ClassState
impl Send for ClassState
impl Sync for ClassState
impl Unpin for ClassState
impl UnwindSafe for ClassState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request