Enum leo_ast::functions::input::input_variable::FunctionInput [−][src]
pub enum FunctionInput { SelfKeyword(SelfKeyword), ConstSelfKeyword(ConstSelfKeyword), MutSelfKeyword(MutSelfKeyword), Variable(FunctionInputVariable), }
Expand description
Enumerates the possible inputs to a function.
Variants
SelfKeyword(SelfKeyword)
ConstSelfKeyword(ConstSelfKeyword)
MutSelfKeyword(MutSelfKeyword)
Variable(FunctionInputVariable)
Implementations
Returns true
if the function input is the self
or mut self
keyword.
Returns false
otherwise.
Returns true
if the function input is the const self
keyword.
Returns false
otherwise.
Returns true
if the function input is the mut self
keyword.
Returns false
otherwise.
Trait Implementations
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
Auto Trait Implementations
impl !RefUnwindSafe for FunctionInput
impl !Send for FunctionInput
impl !Sync for FunctionInput
impl Unpin for FunctionInput
impl UnwindSafe for FunctionInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more