pub struct ContextHunk { /* private fields */ }Expand description
AST node for ContextHunk
Implementations§
Source§impl ContextHunk
impl ContextHunk
Sourcepub fn header(&self) -> Option<ContextHunkHeader>
pub fn header(&self) -> Option<ContextHunkHeader>
Get the hunk header
Sourcepub fn old_section(&self) -> Option<ContextOldSection>
pub fn old_section(&self) -> Option<ContextOldSection>
Get the old section
Sourcepub fn new_section(&self) -> Option<ContextNewSection>
pub fn new_section(&self) -> Option<ContextNewSection>
Get the new section
Trait Implementations§
Source§impl AstNode for ContextHunk
impl AstNode for ContextHunk
Source§impl Clone for ContextHunk
impl Clone for ContextHunk
Source§fn clone(&self) -> ContextHunk
fn clone(&self) -> ContextHunk
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextHunk
impl Debug for ContextHunk
Source§impl Hash for ContextHunk
impl Hash for ContextHunk
Source§impl PartialEq for ContextHunk
impl PartialEq for ContextHunk
impl Eq for ContextHunk
impl StructuralPartialEq for ContextHunk
Auto Trait Implementations§
impl Freeze for ContextHunk
impl !RefUnwindSafe for ContextHunk
impl !Send for ContextHunk
impl !Sync for ContextHunk
impl Unpin for ContextHunk
impl !UnwindSafe for ContextHunk
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