pub struct VisualKey(/* private fields */);Expand description
The identity of a built VisualMap — see Doc::visual_key. Opaque on
purpose: the only useful question is whether two of them are the same map,
and what is behind it — which Doc built it, and the (revision, wrap,
reveal line) it was built from — is core’s business.
The document is part of it because the rest is not unique to one: two documents opened at the same width are both at revision zero with no reveal line, and a frontend holding one copy of a map across the two would take the second’s key for the first’s and paint the wrong document.
Trait Implementations§
impl Eq for VisualKey
impl StructuralPartialEq for VisualKey
Auto Trait Implementations§
impl Freeze for VisualKey
impl RefUnwindSafe for VisualKey
impl Send for VisualKey
impl Sync for VisualKey
impl Unpin for VisualKey
impl UnsafeUnpin for VisualKey
impl UnwindSafe for VisualKey
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