[][src]Struct dyon::ast::Current

pub struct Current {
    pub name: Arc<String>,
    pub source_range: Range,
    pub mutable: bool,
}

Current object reference.

This puts the current object into scope for a function.

Fields

name: Arc<String>

The name of the current object.

source_range: Range

The range in source.

mutable: bool

Whether the current object is mutable.

Implementations

impl Current[src]

pub fn from_meta_data(
    convert: Convert,
    ignored: &mut Vec<Range>
) -> Result<(Range, Current), ()>
[src]

Creates current object reference from meta data.

Trait Implementations

impl Clone for Current[src]

impl Debug for Current[src]

Auto Trait Implementations

impl RefUnwindSafe for Current

impl Send for Current

impl Sync for Current

impl Unpin for Current

impl UnwindSafe for Current

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> From<T> 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, 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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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