pub struct DecorationRange {
pub start: usize,
pub end: usize,
}Expand description
A half-open character-offset range (start..end) in the document.
For point-anchored decorations, use start == end.
Fields§
§start: usizeRange start offset (inclusive), in Unicode scalar values (char) from the start of the document.
end: usizeRange end offset (exclusive), in Unicode scalar values (char) from the start of the document.
Implementations§
Trait Implementations§
Source§impl Clone for DecorationRange
impl Clone for DecorationRange
Source§fn clone(&self) -> DecorationRange
fn clone(&self) -> DecorationRange
Returns a duplicate 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 Debug for DecorationRange
impl Debug for DecorationRange
Source§impl PartialEq for DecorationRange
impl PartialEq for DecorationRange
impl Copy for DecorationRange
impl Eq for DecorationRange
impl StructuralPartialEq for DecorationRange
Auto Trait Implementations§
impl Freeze for DecorationRange
impl RefUnwindSafe for DecorationRange
impl Send for DecorationRange
impl Sync for DecorationRange
impl Unpin for DecorationRange
impl UnsafeUnpin for DecorationRange
impl UnwindSafe for DecorationRange
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