pub struct ControlStr<'a> { /* private fields */ }
Expand description
The control string is the type contains control string for format.
It includes:
- the whole string
- the parsed tree
Use new(&str)
to create a ControlStr and reuse this control string instance to reveal(Args)
to get the result string
Implementations§
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 for ControlStr<'a>
impl<'a> PartialEq for ControlStr<'a>
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> Freeze for ControlStr<'a>
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