[][src]Struct rls_span::Span

pub struct Span<I: Indexed> {
    pub file: PathBuf,
    pub range: Range<I>,
}

Fields

file: PathBufrange: Range<I>

Methods

impl<I: Indexed> Span<I>[src]

pub fn new<F: Into<PathBuf>>(
    row_start: Row<I>,
    row_end: Row<I>,
    col_start: Column<I>,
    col_end: Column<I>,
    file: F
) -> Span<I>
[src]

pub fn from_range<F: Into<PathBuf>>(range: Range<I>, file: F) -> Span<I>[src]

pub fn from_positions<F: Into<PathBuf>>(
    start: Position<I>,
    end: Position<I>,
    file: F
) -> Span<I>
[src]

impl Span<OneIndexed>[src]

impl Span<ZeroIndexed>[src]

pub fn one_indexed(&self) -> Span<OneIndexed>[src]

Trait Implementations

impl<I: Indexed> Clone for Span<I>[src]

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

Performs copy-assignment from source. Read more

impl<I: Ord + Indexed> Ord for Span<I>[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<I: PartialOrd + Indexed> PartialOrd<Span<I>> for Span<I>[src]

impl<I: PartialEq + Indexed> PartialEq<Span<I>> for Span<I>[src]

impl<I: Eq + Indexed> Eq for Span<I>[src]

impl<I: Debug + Indexed> Debug for Span<I>[src]

impl<I: Hash + Indexed> Hash for Span<I>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<I: Indexed> Serialize for Span<I> where
    I: Serialize
[src]

impl<'de, I: Indexed> Deserialize<'de> for Span<I> where
    I: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<I> Sync for Span<I> where
    I: Sync

impl<I> Send for Span<I> where
    I: Send

impl<I> Unpin for Span<I> where
    I: Unpin

impl<I> RefUnwindSafe for Span<I> where
    I: RefUnwindSafe

impl<I> UnwindSafe for Span<I> where
    I: UnwindSafe

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]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]