Trait taml::Position[][src]

pub trait Position: Debug + Clone + Default + PartialEq {
    fn offset_range(&self, local_range: Range<usize>) -> Option<Range<Self>>;
}
Expand description

Implemented by types usable as Position generic type parameter in this library.

Required methods

Adds self to both limits of local_range and returns the result in Some.
If this operation does not make sense, None is returned instead.

Implementations on Foreign Types

Implementors