Struct brane_ast::state::FunctionState
source · pub struct FunctionState {
pub name: String,
pub signature: FunctionSignature,
pub class_name: Option<String>,
pub range: TextRange,
}
Expand description
Defines whatever we need to know of a function in between workflow snippet calls.
Fields§
§name: String
The name of the function.
signature: FunctionSignature
The signature of the function.
class_name: Option<String>
If this function is a method in a class, then the class’ name is stored here.
range: TextRange
The range that links this function back to the source text.
Trait Implementations§
source§impl Clone for FunctionState
impl Clone for FunctionState
source§fn clone(&self) -> FunctionState
fn clone(&self) -> FunctionState
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 FunctionState
impl Debug for FunctionState
source§impl From<&FunctionState> for FunctionEntry
impl From<&FunctionState> for FunctionEntry
source§fn from(value: &FunctionState) -> Self
fn from(value: &FunctionState) -> Self
Converts to this type from the input type.
source§impl From<BuiltinFunctions> for FunctionState
impl From<BuiltinFunctions> for FunctionState
source§fn from(value: BuiltinFunctions) -> Self
fn from(value: BuiltinFunctions) -> Self
Converts to this type from the input type.
source§impl From<FunctionState> for FunctionDef
impl From<FunctionState> for FunctionDef
source§fn from(value: FunctionState) -> Self
fn from(value: FunctionState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FunctionState
impl RefUnwindSafe for FunctionState
impl Send for FunctionState
impl Sync for FunctionState
impl Unpin for FunctionState
impl UnwindSafe for FunctionState
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