[]Struct lark_hir::Variable

pub struct Variable { /* fields omitted */ }

Methods

impl Variable

pub const fn new(index: usize) -> Self

pub const fn from_u32(index: u32) -> Self

pub fn as_u32(self) -> u32

pub fn as_usize(self) -> usize

Trait Implementations

impl HirIndex for Variable[src]

type Data = VariableData

impl Eq for Variable

impl Clone for Variable

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Variable

impl PartialOrd<Variable> for Variable

impl PartialEq<Variable> for Variable

impl Ord for Variable

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl From<Variable> for MetaIndex[src]

impl From<usize> for Variable

impl From<u32> for Variable

impl Hash for Variable

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Add<usize> for Variable

type Output = Variable

The resulting type after applying the + operator.

impl Debug for Variable

impl U32Index for Variable

impl DebugWith for Variable

fn debug_with<Cx>(&'me self, cx: &'me Cx) -> DebugCxPair<'me, &'me Self, Cx> where
    Cx: ?Sized
[src]

fn into_debug_with<Cx>(self, cx: &'me Cx) -> DebugCxPair<'me, Self, Cx> where
    Cx: ?Sized
[src]

impl<Cx> FmtWithSpecialized<Cx> for Variable where
    Cx: FnBodyExtraDebug
[src]

Auto Trait Implementations

impl Send for Variable

impl Sync for Variable

Blanket Implementations

impl<I> SpanIndex for I where
    I: HirIndex
[src]

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

impl<Cx, T> FmtWithSpecialized for T where
    Cx: ?Sized,
    T: Debug + ?Sized
[src]

impl<T> SpanFile for T where
    T: Copy + Eq + Ord + Debug
[src]

impl<T> Erased for T