pub enum SizeMode {
Static(Option<usize>),
Dynamic(fn(&ProcessingState<'_>) -> Option<usize>),
}Expand description
A static or dynamic Option<usize> value.
Used for the fields max_chars and max_bytes.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizeMode
impl RefUnwindSafe for SizeMode
impl Send for SizeMode
impl Sync for SizeMode
impl Unpin for SizeMode
impl UnwindSafe for SizeMode
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