Struct cl_format::ControlStr
source · pub struct ControlStr<'a> { /* private fields */ }
Expand description
the control string should including:
- the whole string
- the parsed tree
Implementations§
source§impl<'a> ControlStr<'a>
impl<'a> ControlStr<'a>
pub fn from<T>(x: T) -> Result<Self, <T as TryInto<ControlStr<'a>>>::Error>where T: TryInto<ControlStr<'a>> + 'a + ?Sized,
pub fn reveal<'s>(&self, args: Args<'s>) -> Result<String, TildeError>
Trait Implementations§
source§impl<'a> Clone for ControlStr<'a>
impl<'a> Clone for ControlStr<'a>
source§fn clone(&self) -> ControlStr<'a>
fn clone(&self) -> ControlStr<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ControlStr<'a>
impl<'a> Debug for ControlStr<'a>
source§impl<'a> PartialEq<ControlStr<'a>> for ControlStr<'a>
impl<'a> PartialEq<ControlStr<'a>> for ControlStr<'a>
source§fn eq(&self, other: &ControlStr<'a>) -> bool
fn eq(&self, other: &ControlStr<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<&'a str> for ControlStr<'a>
impl<'a> TryFrom<&'a str> for ControlStr<'a>
impl<'a> StructuralPartialEq for ControlStr<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ControlStr<'a>
impl<'a> Send for ControlStr<'a>
impl<'a> Sync for ControlStr<'a>
impl<'a> Unpin for ControlStr<'a>
impl<'a> UnwindSafe for ControlStr<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more