Struct editor2::display_map::BlockMap
source · pub struct BlockMap { /* private fields */ }
Implementations§
source§impl BlockMap
impl BlockMap
pub fn new( wrap_snapshot: WrapSnapshot, buffer_header_height: u8, excerpt_header_height: u8 ) -> Self
pub fn read( &self, wrap_snapshot: WrapSnapshot, edits: Patch<u32> ) -> BlockSnapshot
pub fn write( &mut self, wrap_snapshot: WrapSnapshot, edits: Patch<u32> ) -> BlockMapWriter<'_>
pub fn replace(&mut self, renderers: HashMap<BlockId, RenderBlock>)
Auto Trait Implementations§
impl !RefUnwindSafe for BlockMap
impl !Send for BlockMap
impl !Sync for BlockMap
impl Unpin for BlockMap
impl !UnwindSafe for BlockMap
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