pub struct RopeSnapshot { /* private fields */ }Expand description
An immutable, ref-counted view of a buffer’s contents at a specific revision.
Implementations§
Source§impl RopeSnapshot
impl RopeSnapshot
Sourcepub fn new(rope: Arc<Rope>, revision: Revision) -> Self
pub fn new(rope: Arc<Rope>, revision: Revision) -> Self
Construct a snapshot. Callers should prefer crate::Buffer::snapshot.
Trait Implementations§
Source§impl Clone for RopeSnapshot
impl Clone for RopeSnapshot
Source§impl Debug for RopeSnapshot
impl Debug for RopeSnapshot
Source§impl Drop for RopeSnapshot
impl Drop for RopeSnapshot
Auto Trait Implementations§
impl Forget for RopeSnapshot
impl Freeze for RopeSnapshot
impl Move for RopeSnapshot
impl RefUnwindSafe for RopeSnapshot
impl Send for RopeSnapshot
impl Sync for RopeSnapshot
impl Unpin for RopeSnapshot
impl UnsafeUnpin for RopeSnapshot
impl UnwindSafe for RopeSnapshot
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