pub(crate) struct Opaque {
text: Text,
rewrite: Option<Rewrite>,
}Expand description
The raw text of a mapping the tree does not split into entries.
A flow mapping also carries its block rewrite. The text prints until an edit changes the rewrite, and then the rewrite prints instead.
Fields§
§text: Text§rewrite: Option<Rewrite>Implementations§
Source§impl Opaque
impl Opaque
pub(super) fn mapping_mut(&mut self) -> Option<&mut Mapping>
Sourcepub(super) const fn is_unsupported(&self) -> bool
pub(super) const fn is_unsupported(&self) -> bool
Whether edits cannot enter this text.
Sourcepub(super) fn comment(&self) -> Option<&str>
pub(super) fn comment(&self) -> Option<&str>
The comment on the key line, with the whitespace before it.
Trait Implementations§
impl Eq for Opaque
impl StructuralPartialEq for Opaque
Auto Trait Implementations§
impl Freeze for Opaque
impl RefUnwindSafe for Opaque
impl Send for Opaque
impl Sync for Opaque
impl Unpin for Opaque
impl UnsafeUnpin for Opaque
impl UnwindSafe for Opaque
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.