#[repr(C)]pub struct TwigChange {
pub old_span: TwigSpan,
pub new_span: TwigSpan,
}Expand description
C ABI mirror of Zig’s TwigChange — the byte effect of an edit. old_span
is the replaced range in the pre-edit source; new_span is the range the
replacement occupies in the post-edit source (same start).
Fields§
§old_span: TwigSpan§new_span: TwigSpanTrait Implementations§
Source§impl Clone for TwigChange
impl Clone for TwigChange
Source§fn clone(&self) -> TwigChange
fn clone(&self) -> TwigChange
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 moreimpl Copy for TwigChange
Auto Trait Implementations§
impl Freeze for TwigChange
impl RefUnwindSafe for TwigChange
impl Send for TwigChange
impl Sync for TwigChange
impl Unpin for TwigChange
impl UnsafeUnpin for TwigChange
impl UnwindSafe for TwigChange
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