pub struct Context {
pub header: ContextHeader,
pub data: Vec<Line>,
}
Fields§
§header: ContextHeader
§data: Vec<Line>
Implementations§
Source§impl Context
impl Context
pub fn pop_front(&mut self) -> Option<Line>
pub fn pop_back(&mut self) -> Option<Line>
pub fn remove(&mut self, index: usize) -> Option<Line>
pub fn shift(&mut self, offset: isize)
pub fn size(&self) -> usize
pub fn offset(&self) -> isize
pub fn opening_context_size(&self) -> usize
pub fn closing_context_size(&self) -> usize
pub fn has_changes(&self) -> bool
pub fn update(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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