pub struct ValueText { /* private fields */ }Expand description
Owned unfolded field text and the enclosing physical source range.
Implementations§
Source§impl ValueText
impl ValueText
Sourcepub const fn source_range(&self) -> SourceSpan
pub const fn source_range(&self) -> SourceSpan
Returns the contiguous physical value range.
For continued values this includes intervening line endings and indentation, but excludes the field name, colon, and final line ending.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes this value and returns its text.
Trait Implementations§
impl Eq for ValueText
impl StructuralPartialEq for ValueText
Auto Trait Implementations§
impl Freeze for ValueText
impl RefUnwindSafe for ValueText
impl Send for ValueText
impl Sync for ValueText
impl Unpin for ValueText
impl UnsafeUnpin for ValueText
impl UnwindSafe for ValueText
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