Struct utiles::TileStringFormatter
source · pub struct TileStringFormatter { /* private fields */ }Implementations§
source§impl TileStringFormatter
impl TileStringFormatter
pub fn new(fmt: &str) -> Self
pub fn tokens(&self) -> &Vec<FormatParts>
pub fn n_tokens(&self) -> usize
pub fn fmt_tile_custom<T: TileLike>(&self, tile: &T) -> String
pub fn fmt_tile<T: TileLike>(&self, tile: &T) -> String
pub fn has_token(&self) -> bool
pub fn fmt(&self) -> &str
Trait Implementations§
source§impl Default for TileStringFormatter
impl Default for TileStringFormatter
source§impl From<&TileFmtOptions> for TileStringFormatter
impl From<&TileFmtOptions> for TileStringFormatter
source§fn from(opts: &TileFmtOptions) -> Self
fn from(opts: &TileFmtOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TileStringFormatter
impl RefUnwindSafe for TileStringFormatter
impl Send for TileStringFormatter
impl Sync for TileStringFormatter
impl Unpin for TileStringFormatter
impl UnwindSafe for TileStringFormatter
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