pub struct VerifiedEdit { /* private fields */ }Expand description
The verified result of one or more YAML edits.
Implementations§
Source§impl VerifiedEdit
impl VerifiedEdit
Sourcepub fn into_output(self) -> String
pub fn into_output(self) -> String
Consume the verified edit and return the resulting YAML document text.
Sourcepub fn edits(&self) -> &[TextEdit]
pub fn edits(&self) -> &[TextEdit]
The sorted, non-overlapping TextEdits that transform the original input into
Self::output. When two edits share a start offset, an insertion appears first.
Trait Implementations§
Source§impl Clone for VerifiedEdit
impl Clone for VerifiedEdit
Source§impl Debug for VerifiedEdit
impl Debug for VerifiedEdit
impl Eq for VerifiedEdit
Source§impl PartialEq for VerifiedEdit
impl PartialEq for VerifiedEdit
impl StructuralPartialEq for VerifiedEdit
Auto Trait Implementations§
impl Forget for VerifiedEdit
impl Freeze for VerifiedEdit
impl Move for VerifiedEdit
impl RefUnwindSafe for VerifiedEdit
impl Send for VerifiedEditwhere
RawVecInner: Send,
impl Sync for VerifiedEditwhere
RawVecInner: Sync,
impl Unpin for VerifiedEdit
impl UnsafeUnpin for VerifiedEditwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TextEdit>: UnsafeUnpin,
impl UnwindSafe for VerifiedEditwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.