Struct cl_format::ControlStr
source · 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§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> 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