pub struct LengthBasedExampleSelector { /* private fields */ }Expand description
Selector that caps the rendered example total at a character budget.
Drops trailing examples until the rendered character length fits.
The cap measures raw UTF-8 character count over the concatenated
rendered examples joined by \n — coarse but deterministic and
dependency-free.
Implementations§
Source§impl LengthBasedExampleSelector
impl LengthBasedExampleSelector
Trait Implementations§
Source§impl Clone for LengthBasedExampleSelector
impl Clone for LengthBasedExampleSelector
Source§fn clone(&self) -> LengthBasedExampleSelector
fn clone(&self) -> LengthBasedExampleSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LengthBasedExampleSelector
impl Debug for LengthBasedExampleSelector
Auto Trait Implementations§
impl Freeze for LengthBasedExampleSelector
impl !RefUnwindSafe for LengthBasedExampleSelector
impl Send for LengthBasedExampleSelector
impl Sync for LengthBasedExampleSelector
impl Unpin for LengthBasedExampleSelector
impl UnsafeUnpin for LengthBasedExampleSelector
impl !UnwindSafe for LengthBasedExampleSelector
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