[]Struct solana_libra_ir_to_bytecode::parser::ast::Spanned

pub struct Spanned<T> {
    pub span: Span<ByteIndex>,
    pub value: T,
}

Generic wrapper that keeps file locations for any ast-node

Fields

span: Span<ByteIndex>

The file location

value: T

The value being wrapped

Methods

impl<T> Spanned<T>

pub fn no_loc(value: T) -> Spanned<T>

Trait Implementations

impl<T> PartialEq<Spanned<T>> for Spanned<T> where
    T: PartialEq<T>, 

impl<T> Display for Spanned<T> where
    T: Display

impl<T> AsRef<T> for Spanned<T>

impl<T> Copy for Spanned<T> where
    T: Copy

impl<T> Deref for Spanned<T>

type Target = T

The resulting type after dereferencing.

impl<T> Default for Spanned<T> where
    T: Default

impl<T> Debug for Spanned<T> where
    T: Debug

impl<T> Clone for Spanned<T> where
    T: Clone

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

Performs copy-assignment from source. Read more

impl<T> Eq for Spanned<T> where
    T: Eq

Auto Trait Implementations

impl<T> Sync for Spanned<T> where
    T: Sync

impl<T> Send for Spanned<T> where
    T: Send

impl<T> Unpin for Spanned<T> where
    T: Unpin

impl<T> RefUnwindSafe for Spanned<T> where
    T: RefUnwindSafe

impl<T> UnwindSafe for Spanned<T> where
    T: UnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> ToHex for T where
    T: AsRef<[u8]>, 

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToBase32<Vec<u5>> for T where
    T: AsRef<[u8]>, 

fn to_base32(&self) -> Vec<u5>

Convert base256 to base32, adds padding if necessary

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

impl<'f, T> CheckBase32<Vec<u5>> for T where
    T: AsRef<[u8]>, 

type Err = Error

Error type if conversion fails

impl<T> Erased for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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