pub struct Decoration {
pub id: usize,
pub ty: DecorationType,
/* private fields */
}
Fields§
§id: usize
§ty: DecorationType
Implementations§
Source§impl Decoration
impl Decoration
pub fn new( id: usize, start: Position, end: Position, ty: DecorationType, ) -> Self
pub fn is_empty(self) -> bool
pub fn overlaps_with(self, other: Self) -> bool
pub fn length(self) -> Length
pub fn start(self) -> Position
pub fn end(self) -> Position
pub fn apply_edit(self, edit: &Edit) -> Self
Trait Implementations§
Source§impl Clone for Decoration
impl Clone for Decoration
Source§fn clone(&self) -> Decoration
fn clone(&self) -> Decoration
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 Decoration
impl Debug for Decoration
Source§impl Hash for Decoration
impl Hash for Decoration
Source§impl PartialEq for Decoration
impl PartialEq for Decoration
impl Copy for Decoration
impl Eq for Decoration
impl StructuralPartialEq for Decoration
Auto Trait Implementations§
impl Freeze for Decoration
impl RefUnwindSafe for Decoration
impl Send for Decoration
impl Sync for Decoration
impl Unpin for Decoration
impl UnwindSafe for Decoration
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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