[][src]Enum gf::datamodel::LocationAnchor

pub enum LocationAnchor {
    Start,
    End,
}

Location anchor.

Variants

Start

Start of origin.

End

Just after the end of origin.

Methods

impl LocationAnchor[src]

pub fn select<T>(self, range: Range<T>) -> T[src]

Select either start or end of range based on the anchor.

Trait Implementations

impl Clone for LocationAnchor[src]

impl Copy for LocationAnchor[src]

impl Eq for LocationAnchor[src]

impl Ord for LocationAnchor[src]

impl PartialEq<LocationAnchor> for LocationAnchor[src]

impl PartialOrd<LocationAnchor> for LocationAnchor[src]

impl Debug for LocationAnchor[src]

impl Hash for LocationAnchor[src]

impl StructuralPartialEq for LocationAnchor[src]

impl StructuralEq for LocationAnchor[src]

Auto Trait Implementations

impl Send for LocationAnchor

impl Sync for LocationAnchor

impl Unpin for LocationAnchor

impl UnwindSafe for LocationAnchor

impl RefUnwindSafe for LocationAnchor

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]