pub struct GutterDecorations { /* private fields */ }Expand description
The marks beside the line numbers of one editor, encoded and ready to travel.
Implementations§
Source§impl GutterDecorations
impl GutterDecorations
pub fn new(decorations: impl IntoIterator<Item = GutterDecoration>) -> Self
pub fn from_bytes(bytes: impl Into<Rc<[u8]>>) -> Self
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn is_empty(&self) -> bool
Sourcepub fn decorations(&self) -> Vec<GutterDecoration>
pub fn decorations(&self) -> Vec<GutterDecoration>
The marks this list holds, read back. A record whose kind or colour this side does not know is skipped, which is what the Renderer does with it too.
Trait Implementations§
Source§impl Clone for GutterDecorations
impl Clone for GutterDecorations
Source§impl Debug for GutterDecorations
impl Debug for GutterDecorations
Source§impl Default for GutterDecorations
impl Default for GutterDecorations
Source§impl PartialEq for GutterDecorations
impl PartialEq for GutterDecorations
impl StructuralPartialEq for GutterDecorations
Auto Trait Implementations§
impl !Send for GutterDecorations
impl !Sync for GutterDecorations
impl Freeze for GutterDecorations
impl RefUnwindSafe for GutterDecorations
impl Unpin for GutterDecorations
impl UnsafeUnpin for GutterDecorations
impl UnwindSafe for GutterDecorations
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