Struct specifications::common::SpecFunction
source · pub struct SpecFunction {
pub arity: u8,
pub bytecode: Bytecode,
pub name: String,
}
Expand description
Defines a special function(?) in the DSL’s AST.
Fields§
§arity: u8
§bytecode: Bytecode
§name: String
Trait Implementations§
source§impl Clone for SpecFunction
impl Clone for SpecFunction
source§fn clone(&self) -> SpecFunction
fn clone(&self) -> SpecFunction
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 SpecFunction
impl Debug for SpecFunction
source§impl<'de> Deserialize<'de> for SpecFunction
impl<'de> Deserialize<'de> for SpecFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SpecFunction> for Value
impl From<SpecFunction> for Value
source§fn from(function: SpecFunction) -> Self
fn from(function: SpecFunction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SpecFunction
impl RefUnwindSafe for SpecFunction
impl Send for SpecFunction
impl Sync for SpecFunction
impl Unpin for SpecFunction
impl UnwindSafe for SpecFunction
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