[−][src]Struct rls_span::Span
Fields
file: PathBuf
range: 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]
row_start: Row<I>,
row_end: Row<I>,
col_start: Column<I>,
col_end: Column<I>,
file: F
) -> Span<I>
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]
start: Position<I>,
end: Position<I>,
file: F
) -> Span<I>
impl Span<OneIndexed>
[src]
pub fn zero_indexed(&self) -> Span<ZeroIndexed>
[src]
impl Span<ZeroIndexed>
[src]
pub fn one_indexed(&self) -> Span<OneIndexed>
[src]
Trait Implementations
impl<I: Ord + Indexed> Ord for Span<I>
[src]
fn cmp(&self, other: &Span<I>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.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: Indexed> Clone for Span<I>
[src]
fn clone(&self) -> Span<I>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<I: PartialEq + Indexed> PartialEq<Span<I>> for Span<I>
[src]
impl<I: Eq + Indexed> Eq for Span<I>
[src]
impl<I: PartialOrd + Indexed> PartialOrd<Span<I>> for Span<I>
[src]
fn partial_cmp(&self, other: &Span<I>) -> Option<Ordering>
[src]
fn lt(&self, other: &Span<I>) -> bool
[src]
fn le(&self, other: &Span<I>) -> bool
[src]
fn gt(&self, other: &Span<I>) -> bool
[src]
fn ge(&self, other: &Span<I>) -> bool
[src]
impl<I: Debug + Indexed> Debug for Span<I>
[src]
impl<I: Hash + Indexed> Hash for Span<I>
[src]
fn hash<__HI: Hasher>(&self, state: &mut __HI)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<I: Indexed> Serialize for Span<I> where
I: Serialize,
[src]
I: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, I: Indexed> Deserialize<'de> for Span<I> where
I: Deserialize<'de>,
[src]
I: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<I> Sync for Span<I> where
I: Sync,
I: Sync,
impl<I> Unpin for Span<I> where
I: Unpin,
I: Unpin,
impl<I> Send for Span<I> where
I: Send,
I: Send,
impl<I> UnwindSafe for Span<I> where
I: UnwindSafe,
I: UnwindSafe,
impl<I> RefUnwindSafe for Span<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,