pub struct WordSegment {
pub text: String,
pub kind: WordSegmentKind,
}Expand description
A segment of a word-level diff within a single line.
Fields§
§text: String§kind: WordSegmentKindTrait Implementations§
Source§impl Clone for WordSegment
impl Clone for WordSegment
Source§fn clone(&self) -> WordSegment
fn clone(&self) -> WordSegment
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 moreSource§impl Debug for WordSegment
impl Debug for WordSegment
Source§impl PartialEq for WordSegment
impl PartialEq for WordSegment
Source§fn eq(&self, other: &WordSegment) -> bool
fn eq(&self, other: &WordSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WordSegment
Auto Trait Implementations§
impl Freeze for WordSegment
impl RefUnwindSafe for WordSegment
impl Send for WordSegment
impl Sync for WordSegment
impl Unpin for WordSegment
impl UnsafeUnpin for WordSegment
impl UnwindSafe for WordSegment
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