pub struct DefaultMetrics { /* private fields */ }
Expand description
Default metrics infos.
By default, tab stop length is 8, but it can be set using DefaultMetrics::with_tab_stop
.
Implementations§
Source§impl DefaultMetrics
impl DefaultMetrics
Sourcepub const fn new() -> DefaultMetrics
pub const fn new() -> DefaultMetrics
Create a new default metrics instance.
Tab stop length will be 8.
Sourcepub const fn with_tab_stop(tab_stop: usize) -> DefaultMetrics
pub const fn with_tab_stop(tab_stop: usize) -> DefaultMetrics
Create a new default metrics with a custom tab stop length.
Trait Implementations§
Source§impl Clone for DefaultMetrics
impl Clone for DefaultMetrics
Source§fn clone(&self) -> DefaultMetrics
fn clone(&self) -> DefaultMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 DefaultMetrics
impl Debug for DefaultMetrics
Source§impl Hash for DefaultMetrics
impl Hash for DefaultMetrics
Source§impl Metrics for DefaultMetrics
impl Metrics for DefaultMetrics
Source§impl PartialEq for DefaultMetrics
impl PartialEq for DefaultMetrics
impl Copy for DefaultMetrics
impl Eq for DefaultMetrics
impl StructuralPartialEq for DefaultMetrics
Auto Trait Implementations§
impl Freeze for DefaultMetrics
impl RefUnwindSafe for DefaultMetrics
impl Send for DefaultMetrics
impl Sync for DefaultMetrics
impl Unpin for DefaultMetrics
impl UnwindSafe for DefaultMetrics
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