pub struct EmptyRange<R> { /* private fields */ }
Implementations§
Source§impl<R> EmptyRange<R>
impl<R> EmptyRange<R>
pub fn new(_start: TextSize, _end: TextSize) -> EmptyRange<R>
Trait Implementations§
Source§impl<R> Clone for EmptyRange<R>where
R: Clone,
impl<R> Clone for EmptyRange<R>where
R: Clone,
Source§fn clone(&self) -> EmptyRange<R>
fn clone(&self) -> EmptyRange<R>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<R> Debug for EmptyRange<R>
impl<R> Debug for EmptyRange<R>
Source§impl<R> Default for EmptyRange<R>
impl<R> Default for EmptyRange<R>
Source§fn default() -> EmptyRange<R>
fn default() -> EmptyRange<R>
Returns the “default value” for a type. Read more
Source§impl<R> Display for EmptyRange<R>
impl<R> Display for EmptyRange<R>
Source§impl<R> From<R> for EmptyRange<R>
impl<R> From<R> for EmptyRange<R>
Source§fn from(_: R) -> EmptyRange<R>
fn from(_: R) -> EmptyRange<R>
Converts to this type from the input type.
Source§impl<R> Hash for EmptyRange<R>where
R: Hash,
impl<R> Hash for EmptyRange<R>where
R: Hash,
Source§impl<R> PartialEq for EmptyRange<R>where
R: PartialEq,
impl<R> PartialEq for EmptyRange<R>where
R: PartialEq,
impl<R> Copy for EmptyRange<R>where
R: Copy,
impl<R> Eq for EmptyRange<R>where
R: Eq,
impl<R> StructuralPartialEq for EmptyRange<R>
Auto Trait Implementations§
impl<R> Freeze for EmptyRange<R>
impl<R> RefUnwindSafe for EmptyRange<R>where
R: RefUnwindSafe,
impl<R> Send for EmptyRange<R>where
R: Send,
impl<R> Sync for EmptyRange<R>where
R: Sync,
impl<R> Unpin for EmptyRange<R>where
R: Unpin,
impl<R> UnwindSafe for EmptyRange<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more