Struct ruschm::error::Located[][src]

pub struct Located<T> {
    pub data: T,
    pub location: Option<[u32; 2]>,
}

Fields

data: Tlocation: Option<[u32; 2]>

Implementations

impl<T> Located<T>[src]

pub fn extract_data(self) -> T[src]

impl Located<SyntaxTemplateBody>[src]

pub fn substitude<'a>(
    &self,
    substitutions: &HashMap<String, (Datum, Vec<Datum>)>
) -> Result<Vec<Datum>, SchemeError>
[src]

impl Located<ParameterFormalsBody>[src]

pub fn new_non_located(
    parameters: impl Iterator<Item = String>,
    last: Option<String>
) -> Self
[src]

pub fn split(self) -> Result<(Vec<String>, Option<String>), SchemeError>[src]

pub fn len(&self) -> (usize, bool)[src]

pub fn as_name(&self) -> String[src]

pub fn iter_to_last(
    &self,
    visitor: impl FnMut(&ParameterFormals)
) -> Option<&ParameterFormals>
[src]

pub fn append(&mut self, x: ParameterFormals) -> Result<(), SchemeError>[src]

impl Located<DatumBody>[src]

Trait Implementations

impl<T: Clone> Clone for Located<T>[src]

impl<T: Copy> Copy for Located<T>[src]

impl<T: Debug> Debug for Located<T>[src]

impl<T> Deref for Located<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for Located<T>[src]

impl<T: Display> Display for Located<T>[src]

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

impl Into<Statement> for Located<ImportDeclaration>[src]

impl Into<Statement> for Located<LibraryDefinition>[src]

impl<T: PartialEq> PartialEq<Located<T>> for Located<T>[src]

Auto Trait Implementations

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

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

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

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

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

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<!> for T[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> 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.