[][src]Struct xi_rope::rope::BaseMetric

pub struct BaseMetric(_);

This metric let us walk utf8 text by code point.

BaseMetric implements the trait Metric. Both its measured unit and its base unit are utf8 code unit.

Offsets that do not correspond to codepoint boundaries are invalid, and calling functions that assume valid offsets with invalid offets will panic in debug mode.

Boundary is atomic and determined by codepoint boundary. Atomicity is implicit, because offsets between two utf8 code units that form a code point is considered invalid. For example, if a string starts with a 0xC2 byte, then offset=1 is invalid.

Trait Implementations

impl Metric<RopeInfo> for BaseMetric[src]

impl Copy for BaseMetric[src]

impl Clone for BaseMetric[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]