Struct source_span::DefaultMetrics [−][src]
pub struct DefaultMetrics { /* fields omitted */ }
Default metrics infos.
By default, tab stop length is 8, but it can be set using DefaultMetrics::with_tab_stop
.
Implementations
impl DefaultMetrics
[src]
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 Clone for DefaultMetrics
[src]fn clone(&self) -> DefaultMetrics
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DefaultMetrics
[src]
impl Copy for DefaultMetrics
[src]impl Eq for DefaultMetrics
[src]
impl Eq for DefaultMetrics
[src]impl Hash for DefaultMetrics
[src]
impl Hash for DefaultMetrics
[src]impl Metrics for DefaultMetrics
[src]
impl Metrics for DefaultMetrics
[src]impl PartialEq<DefaultMetrics> for DefaultMetrics
[src]
impl PartialEq<DefaultMetrics> for DefaultMetrics
[src]fn eq(&self, other: &DefaultMetrics) -> bool
[src]
fn ne(&self, other: &DefaultMetrics) -> bool
[src]
impl StructuralEq for DefaultMetrics
[src]
impl StructuralEq for DefaultMetrics
[src]impl StructuralPartialEq for DefaultMetrics
[src]
impl StructuralPartialEq for DefaultMetrics
[src]Auto Trait Implementations
impl RefUnwindSafe for DefaultMetrics
impl RefUnwindSafe for DefaultMetrics
impl Send for DefaultMetrics
impl Send for DefaultMetrics
impl Sync for DefaultMetrics
impl Sync for DefaultMetrics
impl Unpin for DefaultMetrics
impl Unpin for DefaultMetrics
impl UnwindSafe for DefaultMetrics
impl UnwindSafe for DefaultMetrics