pub struct PlaceholderFormat { /* private fields */ }Expand description
A parsed placeholder template.
Rules: it contains {TYPE} and {N} once each, separated by literal
text, and it starts and ends with literal text. The opening text must start
with a character that is not a letter, digit or _, so placeholders can’t
run into surrounding words.
Implementations§
Trait Implementations§
Source§impl Clone for PlaceholderFormat
impl Clone for PlaceholderFormat
Auto Trait Implementations§
impl Freeze for PlaceholderFormat
impl RefUnwindSafe for PlaceholderFormat
impl Send for PlaceholderFormat
impl Sync for PlaceholderFormat
impl Unpin for PlaceholderFormat
impl UnsafeUnpin for PlaceholderFormat
impl UnwindSafe for PlaceholderFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more