pub(crate) struct Member {
key: Key,
after_key: Trivia,
after_colon: Trivia,
value: Value,
tail: Tail,
}Expand description
One key: value pair and the trivia around it. The leading trivia is the
value’s.
Fields§
§key: Key§after_key: TriviaBetween the key and the colon.
after_colon: TriviaBetween the colon and the value.
value: Value§tail: TailImplementations§
Source§impl Member
impl Member
pub(in json) const fn parsed( key: Key, after_key: Trivia, after_colon: Trivia, value: Value, tail: Tail, ) -> Self
Sourcefn canonical(name: &str, value: Value, tail: Tail) -> Self
fn canonical(name: &str, value: Value, tail: Tail) -> Self
A member with a canonical key and colon.
fn build(name: &str, node: &Annotated, dialect: Dialect, depth: usize) -> Self
fn trivia_mut(&mut self, visit: &mut dyn FnMut(&mut Trivia))
Trait Implementations§
impl Eq for Member
impl StructuralPartialEq for Member
Auto Trait Implementations§
impl Freeze for Member
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnsafeUnpin for Member
impl UnwindSafe for Member
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.