pub struct BufferSource { /* private fields */ }Expand description
D.8.b (2026-05-31): live-rope participant backed by a
buffer. Replaces the prior BufferSource +
BufferSource two-struct split (both had identical
shape — provider + buffer_id — and only differed in which
trait they implemented). The trait collapse to
DiffParticipantSource makes the split structurally
redundant.
The unsaved-buffer case: when neither side of a diff has a
filesystem path, both sides resolve through
BufferTextProvider at snapshot time. The session’s
descriptor must include this buffer in its watch list so
edits to it wake the session.
Implementations§
Source§impl BufferSource
impl BufferSource
Trait Implementations§
Source§impl Clone for BufferSource
impl Clone for BufferSource
Source§fn clone(&self) -> BufferSource
fn clone(&self) -> BufferSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BufferSource
impl Debug for BufferSource
Source§impl DiffParticipantSource for BufferSource
impl DiffParticipantSource for BufferSource
Auto Trait Implementations§
impl !RefUnwindSafe for BufferSource
impl !UnwindSafe for BufferSource
impl Freeze for BufferSource
impl Send for BufferSource
impl Sync for BufferSource
impl Unpin for BufferSource
impl UnsafeUnpin for BufferSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more