Struct editor2::ExcerptRange
source · pub struct ExcerptRange<T> {
pub context: Range<T>,
pub primary: Option<Range<T>>,
}
Fields§
§context: Range<T>
§primary: Option<Range<T>>
Trait Implementations§
source§impl<T> Clone for ExcerptRange<T>where
T: Clone,
impl<T> Clone for ExcerptRange<T>where T: Clone,
source§fn clone(&self) -> ExcerptRange<T>
fn clone(&self) -> ExcerptRange<T>
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<T> Debug for ExcerptRange<T>where
T: Debug,
impl<T> Debug for ExcerptRange<T>where T: Debug,
source§impl<T> PartialEq<ExcerptRange<T>> for ExcerptRange<T>where
T: PartialEq<T>,
impl<T> PartialEq<ExcerptRange<T>> for ExcerptRange<T>where T: PartialEq<T>,
source§fn eq(&self, other: &ExcerptRange<T>) -> bool
fn eq(&self, other: &ExcerptRange<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T> Eq for ExcerptRange<T>where T: Eq,
impl<T> StructuralEq for ExcerptRange<T>
impl<T> StructuralPartialEq for ExcerptRange<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ExcerptRange<T>where T: RefUnwindSafe,
impl<T> Send for ExcerptRange<T>where T: Send,
impl<T> Sync for ExcerptRange<T>where T: Sync,
impl<T> Unpin for ExcerptRange<T>where T: Unpin,
impl<T> UnwindSafe for ExcerptRange<T>where T: 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.