pub(crate) struct CurrentBuffer<'a> {
buffer: OnceCell<OpenBuffer<'a>>,
buf_ref: &'a LispBuffer,
}
Fields§
§buffer: OnceCell<OpenBuffer<'a>>
§buf_ref: &'a LispBuffer
Implementations§
Source§impl<'a> CurrentBuffer<'a>
impl<'a> CurrentBuffer<'a>
fn lock(&self) -> OpenBuffer<'a>
pub(crate) fn get(&self) -> &OpenBuffer<'a>
pub(crate) fn get_mut(&mut self) -> &mut OpenBuffer<'a>
pub(crate) fn set(&mut self, buffer: &LispBuffer)
pub(crate) fn release(&mut self)
Trait Implementations§
Source§impl Default for CurrentBuffer<'_>
impl Default for CurrentBuffer<'_>
Source§impl PartialEq<LispBuffer> for CurrentBuffer<'_>
impl PartialEq<LispBuffer> for CurrentBuffer<'_>
Auto Trait Implementations§
impl<'a> !Freeze for CurrentBuffer<'a>
impl<'a> !RefUnwindSafe for CurrentBuffer<'a>
impl<'a> !Send for CurrentBuffer<'a>
impl<'a> !Sync for CurrentBuffer<'a>
impl<'a> Unpin for CurrentBuffer<'a>
impl<'a> !UnwindSafe for CurrentBuffer<'a>
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