pub struct FormatArguments<'a> { /* private fields */ }Expand description
A struct that holds a slice of format arguments and provides methods to access them
Implementations§
Source§impl<'a> FormatArguments<'a>
impl<'a> FormatArguments<'a>
Sourcepub fn new(args: &'a [FormatArgument]) -> Self
pub fn new(args: &'a [FormatArgument]) -> Self
Create a new FormatArguments from a slice of FormatArgument
Sourcepub fn peek_arg(&self) -> Option<&'a FormatArgument>
pub fn peek_arg(&self) -> Option<&'a FormatArgument>
Get the next argument that would be used
Sourcepub fn is_exhausted(&self) -> bool
pub fn is_exhausted(&self) -> bool
Check if all arguments have been consumed
pub fn start_next_batch(&mut self)
pub fn next_char(&mut self, position: &ArgumentLocation) -> u8
pub fn next_string(&mut self, position: &ArgumentLocation) -> &'a OsStr
pub fn next_i64(&mut self, position: &ArgumentLocation) -> i64
pub fn next_u64(&mut self, position: &ArgumentLocation) -> u64
pub fn next_extended_big_decimal( &mut self, position: &ArgumentLocation, ) -> ExtendedBigDecimal
Trait Implementations§
Source§impl<'a> Debug for FormatArguments<'a>
impl<'a> Debug for FormatArguments<'a>
Source§impl<'a> PartialEq for FormatArguments<'a>
impl<'a> PartialEq for FormatArguments<'a>
impl<'a> StructuralPartialEq for FormatArguments<'a>
Auto Trait Implementations§
impl<'a> Freeze for FormatArguments<'a>
impl<'a> RefUnwindSafe for FormatArguments<'a>
impl<'a> Send for FormatArguments<'a>
impl<'a> Sync for FormatArguments<'a>
impl<'a> Unpin for FormatArguments<'a>
impl<'a> UnwindSafe for FormatArguments<'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