[−][src]Struct xkb_parser::ast::StringContent
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]
self,
f: __SHRINKWRAP_F
) -> __SHRINKWRAP_T
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]
&self,
f: __SHRINKWRAP_F
) -> __SHRINKWRAP_T
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]
&mut self,
f: __SHRINKWRAP_F
) -> __SHRINKWRAP_T where
__SHRINKWRAP_F: FnMut(&mut &'src str) -> __SHRINKWRAP_T,
Map a function over the wrapped value, potentially changing it in place.
Trait Implementations
impl<'src> Clone for StringContent<'src>
[src]
fn clone(&self) -> StringContent<'src>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'src> PartialEq<StringContent<'src>> for StringContent<'src>
[src]
fn eq(&self, other: &StringContent<'src>) -> bool
[src]
fn ne(&self, other: &StringContent<'src>) -> bool
[src]
impl<'src> AsRef<&'src str> for StringContent<'src>
[src]
impl<'src> From<StringContent<'src>> for String
[src]
fn from(x: StringContent<'src>) -> String
[src]
impl<'a, 'src> From<&'a StringContent<'src>> for String
[src]
fn from(x: &StringContent) -> String
[src]
impl<'src> Deref for StringContent<'src>
[src]
type Target = &'src str
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
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.
fn from_pest(
pest: &mut Pairs<'a, Self::Rule>
) -> Result<Self, ConversionError<Void>>
[src]
pest: &mut Pairs<'a, Self::Rule>
) -> Result<Self, ConversionError<Void>>
Auto Trait Implementations
impl<'src> Sync for StringContent<'src>
impl<'src> Unpin 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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,