[−][src]Struct source_span::DefaultMetrics
Default metrics infos.
By default, tab stop length is 8, but it can be set using DefaultMetrics::with_tab_stop
.
Implementations
impl DefaultMetrics
[src][−]
pub const fn new() -> DefaultMetrics
[src][−]
Create a new default metrics instance.
Tab stop length will be 8.
pub const fn with_tab_stop(tab_stop: usize) -> DefaultMetrics
[src][−]
Create a new default metrics with a custom tab stop length.
Trait Implementations
impl Clone for DefaultMetrics
[src][+]
impl Copy for DefaultMetrics
[src]
impl Debug for DefaultMetrics
[src][+]
impl Eq for DefaultMetrics
[src]
impl Hash for DefaultMetrics
[src][+]
impl Metrics for DefaultMetrics
[src][+]
impl PartialEq<DefaultMetrics> for DefaultMetrics
[src][+]
impl StructuralEq for DefaultMetrics
[src]
impl StructuralPartialEq for DefaultMetrics
[src]
Auto Trait Implementations
impl RefUnwindSafe for DefaultMetrics
impl Send for DefaultMetrics
impl Sync for DefaultMetrics
impl Unpin for DefaultMetrics
impl UnwindSafe for DefaultMetrics
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,