[][src]Struct xkb_parser::ast::StringContent

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

Fields

content: &'src str

Methods

impl<'src> StringContent<'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 StringContent<'src>[src]

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

Performs copy-assignment from source. Read more

impl<'src> From<StringContent<'src>> for String[src]

impl<'a, 'src> From<&'a StringContent<'src>> for String[src]

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

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

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

type Target = &'src str

The resulting type after dereferencing.

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

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

impl<'a> FromPest<'a> for StringContent<'a>[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 StringContent<'src>

impl<'src> Sync for StringContent<'src>

impl<'src> Send for StringContent<'src>

impl<'src> UnwindSafe for StringContent<'src>

impl<'src> RefUnwindSafe for StringContent<'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]