Struct derive_more::display::Placeholder
source · struct Placeholder {
position: usize,
trait_name: &'static str,
}Expand description
Representation of formatting placeholder.
Fields§
§position: usizePosition of formatting argument to be used for this placeholder.
trait_name: &'static strName of std::fmt trait to be used for rendering this placeholder.
Implementations§
source§impl Placeholder
impl Placeholder
sourcefn parse_fmt_string(s: &str) -> Vec<Placeholder>
fn parse_fmt_string(s: &str) -> Vec<Placeholder>
Parses Placeholders from a given formatting string.
Trait Implementations§
source§impl Debug for Placeholder
impl Debug for Placeholder
source§impl PartialEq<Placeholder> for Placeholder
impl PartialEq<Placeholder> for Placeholder
source§fn eq(&self, other: &Placeholder) -> bool
fn eq(&self, other: &Placeholder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for Placeholder
Auto Trait Implementations§
impl RefUnwindSafe for Placeholder
impl Send for Placeholder
impl Sync for Placeholder
impl Unpin for Placeholder
impl UnwindSafe for Placeholder
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