Enum ruschm::parser::pair::GenericPair[][src]

pub enum GenericPair<T> {
    Some(T, T),
    Empty,
}

Variants

Some(T, T)
Empty

Implementations

impl<T: Pairable> GenericPair<T>[src]

pub fn pop(&mut self) -> Option<PairPopItem<T>>[src]

pub fn pop_proper(&mut self) -> Result<Option<T>, SchemeError>[src]

pub fn last_cdr(&self) -> Option<&T>[src]

pub fn into_pair_iter(self) -> IntoPairIter<T>

Notable traits for IntoPairIter<T>

impl<T: Pairable> Iterator for IntoPairIter<T> type Item = PairIterItem<T>;
[src]

pub fn from_pair_iter<I: IntoIterator<Item = PairIterItem<T>>>(
    iter: I
) -> Result<Self, SchemeError>
[src]

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

pub fn iter(&self) -> Iter<'_, T>

Notable traits for Iter<'a, T>

impl<'a, T: Pairable> Iterator for Iter<'a, T> type Item = &'a T;
[src]

pub fn iter_mut(&mut self) -> IterMut<'_, T>

Notable traits for IterMut<'a, T>

impl<'a, T: Pairable> Iterator for IterMut<'a, T> type Item = &'a T;
[src]

pub fn cons(car: T, cdr: T) -> Self[src]

pub fn map_ok<Target: Pairable>(
    self,
    f: &mut impl FnMut(T) -> Result<Target, SchemeError>
) -> Result<GenericPair<Target>, SchemeError>
[src]

pub fn map_ok_ref<Target: Pairable>(
    &self,
    f: &mut impl FnMut(&T) -> Result<Target, SchemeError>
) -> Result<GenericPair<Target>, SchemeError>
[src]

Trait Implementations

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

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

impl<T> Default for GenericPair<T>[src]

impl<T: Display + Pairable> Display for GenericPair<T>[src]

impl From<GenericPair<Located<DatumBody>>> for Datum[src]

impl From<GenericPair<Located<ParameterFormalsBody>>> for ParameterFormals[src]

impl From<GenericPair<Located<SyntaxPatternBody>>> for SyntaxPattern[src]

impl From<GenericPair<SyntaxTemplateElement>> for SyntaxTemplateElement[src]

impl<T: Pairable> From<GenericPair<T>> for IntoPairIter<T>[src]

impl<R: RealNumberInternalTrait> From<GenericPair<Value<R>>> for Value<R>[src]

impl<T: Pairable> FromIterator<T> for GenericPair<T>[src]

impl<T: Pairable> IntoIterator for GenericPair<T>[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?

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

impl<T> StructuralPartialEq for GenericPair<T>[src]

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for GenericPair<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<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.