[][src]Enum leo_ast::functions::input::input_variable::FunctionInput

pub enum FunctionInput {
    InputKeyword(InputKeyword),
    SelfKeyword(SelfKeyword),
    MutSelfKeyword(MutSelfKeyword),
    Variable(FunctionInputVariable),
}

Enumerates the possible inputs to a function.

Variants

InputKeyword(InputKeyword)
SelfKeyword(SelfKeyword)
MutSelfKeyword(MutSelfKeyword)

Implementations

impl FunctionInput[src]

pub fn is_self(&self) -> bool[src]

Returns true if the function input is the self or mut self keyword. Returns false otherwise.

pub fn is_mut_self(&self) -> bool[src]

Returns true if the function input is the mut self keyword. Returns false otherwise.

Trait Implementations

impl Clone for FunctionInput[src]

impl Debug for FunctionInput[src]

impl<'de> Deserialize<'de> for FunctionInput[src]

impl Display for FunctionInput[src]

impl Eq for FunctionInput[src]

impl<'ast> From<Input<'ast>> for FunctionInput[src]

impl PartialEq<FunctionInput> for FunctionInput[src]

pub fn eq(&self, other: &Self) -> bool[src]

Returns true if self == other. Does not compare spans.

impl Serialize for FunctionInput[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,