[][src]Struct nommy::surrounded::SurroundedBy

pub struct SurroundedBy<Prefix, P, Suffix> {
    pub prefix: Prefix,
    pub parsed: P,
    pub suffix: Suffix,
}

SurroundedBy implements Parse, first parsing Prefix, then parsing P, finally parsing Suffix.

Fields

prefix: Prefixparsed: Psuffix: Suffix

Trait Implementations

impl<Prefix: Clone, P: Clone, Suffix: Clone> Clone for SurroundedBy<Prefix, P, Suffix>[src]

impl<Prefix: Debug, P: Debug, Suffix: Debug> Debug for SurroundedBy<Prefix, P, Suffix>[src]

impl<Prefix: Parse<T>, P: Parse<T>, Suffix: Parse<T>, T> Parse<T> for SurroundedBy<Prefix, P, Suffix>[src]

Define Parse for SurroundedBy

. Parse Prefix then parse P

type Error = SurroundedByParseError<Prefix::Error, P::Error, Suffix::Error>

impl<Prefix: PartialEq, P: PartialEq, Suffix: PartialEq> PartialEq<SurroundedBy<Prefix, P, Suffix>> for SurroundedBy<Prefix, P, Suffix>[src]

impl<Prefix: Peek<T>, P: Peek<T>, Suffix: Peek<T>, T> Peek<T> for SurroundedBy<Prefix, P, Suffix>[src]

impl<Prefix, P: Process, Suffix> Process for SurroundedBy<Prefix, P, Suffix>[src]

type Output = P::Output

impl<Prefix, P, Suffix> StructuralPartialEq for SurroundedBy<Prefix, P, Suffix>[src]

Auto Trait Implementations

impl<Prefix, P, Suffix> RefUnwindSafe for SurroundedBy<Prefix, P, Suffix> where
    P: RefUnwindSafe,
    Prefix: RefUnwindSafe,
    Suffix: RefUnwindSafe
[src]

impl<Prefix, P, Suffix> Send for SurroundedBy<Prefix, P, Suffix> where
    P: Send,
    Prefix: Send,
    Suffix: Send
[src]

impl<Prefix, P, Suffix> Sync for SurroundedBy<Prefix, P, Suffix> where
    P: Sync,
    Prefix: Sync,
    Suffix: Sync
[src]

impl<Prefix, P, Suffix> Unpin for SurroundedBy<Prefix, P, Suffix> where
    P: Unpin,
    Prefix: Unpin,
    Suffix: Unpin
[src]

impl<Prefix, P, Suffix> UnwindSafe for SurroundedBy<Prefix, P, Suffix> where
    P: UnwindSafe,
    Prefix: UnwindSafe,
    Suffix: UnwindSafe
[src]

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.