pub struct Truncate {
pub field: String,
pub max_len: usize,
}Expand description
Truncate a string field to max_len characters.
Fields§
§field: String§max_len: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Truncate
impl RefUnwindSafe for Truncate
impl Send for Truncate
impl Sync for Truncate
impl Unpin for Truncate
impl UnsafeUnpin for Truncate
impl UnwindSafe for Truncate
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