[][src]Struct xkb_parser::ast::Group

pub struct Group<'src> {
    pub content: &'src str,
}

Fields

content: &'src str

Methods

impl<'src> Group<'src>[src]

pub fn map<__SHRINKWRAP_T, __SHRINKWRAP_F: FnMut(&'src str) -> __SHRINKWRAP_T>(
    self,
    f: __SHRINKWRAP_F
) -> __SHRINKWRAP_T
[src]

Map a function over the wrapped value, consuming it in the process.

pub fn map_ref<__SHRINKWRAP_T, __SHRINKWRAP_F: FnMut(&&'src str) -> __SHRINKWRAP_T>(
    &self,
    f: __SHRINKWRAP_F
) -> __SHRINKWRAP_T
[src]

Map a function over the wrapped value without consuming it.

pub fn map_mut<__SHRINKWRAP_T, __SHRINKWRAP_F>(
    &mut self,
    f: __SHRINKWRAP_F
) -> __SHRINKWRAP_T where
    __SHRINKWRAP_F: FnMut(&mut &'src str) -> __SHRINKWRAP_T, 
[src]

Map a function over the wrapped value, potentially changing it in place.

Trait Implementations

impl<'src> Clone for Group<'src>[src]

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

Performs copy-assignment from source. Read more

impl<'src> AsRef<&'src str> for Group<'src>[src]

impl<'src> PartialEq<Group<'src>> for Group<'src>[src]

impl<'src> Deref for Group<'src>[src]

type Target = &'src str

The resulting type after dereferencing.

impl<'src> Debug for Group<'src>[src]

impl<'src> Borrow<&'src str> for Group<'src>[src]

impl<'src> FromPest<'src> for Group<'src>[src]

type Rule = Rule

The rule type for the parse tree this type corresponds to.

type FatalError = Void

A fatal error during conversion.

Auto Trait Implementations

impl<'src> Unpin for Group<'src>

impl<'src> Sync for Group<'src>

impl<'src> Send for Group<'src>

impl<'src> UnwindSafe for Group<'src>

impl<'src> RefUnwindSafe for Group<'src>

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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