Enum brane_ast::spec::BuiltinClasses
source · pub enum BuiltinClasses {
Data,
IntermediateResult,
}
Expand description
Defines the builtin classes that exist in BraneScript.
Variants§
Implementations§
source§impl BuiltinClasses
impl BuiltinClasses
sourcepub fn props(&self) -> Vec<VarState>
pub fn props(&self) -> Vec<VarState>
Returns a list of all properties (as VarState
s) in this builtin class.
sourcepub fn methods(&self) -> Vec<FunctionState>
pub fn methods(&self) -> Vec<FunctionState>
Returns a list of all methods (as FunctioNState
s) in this builtin class.
sourcepub fn all_into_state(funcs: &mut Vec<FunctionState>) -> [ClassState; 2]
pub fn all_into_state(funcs: &mut Vec<FunctionState>) -> [ClassState; 2]
Returns an Array with all of the builtin functions but already casted to FunctionStates.
§Arguments
funcs
: The list of function states to use for declaring new methods, if any.
sourcepub fn into_state(&self, funcs: &mut Vec<FunctionState>) -> ClassState
pub fn into_state(&self, funcs: &mut Vec<FunctionState>) -> ClassState
Trait Implementations§
source§impl Clone for BuiltinClasses
impl Clone for BuiltinClasses
source§fn clone(&self) -> BuiltinClasses
fn clone(&self) -> BuiltinClasses
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 BuiltinClasses
impl Debug for BuiltinClasses
impl Copy for BuiltinClasses
Auto Trait Implementations§
impl Freeze for BuiltinClasses
impl RefUnwindSafe for BuiltinClasses
impl Send for BuiltinClasses
impl Sync for BuiltinClasses
impl Unpin for BuiltinClasses
impl UnwindSafe for BuiltinClasses
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