pub enum FragmentRef<'a, M> {
    Value(&'a Meta<Value<M>, M>),
    Entry(&'a Entry<M>),
    Key(&'a Meta<Key, M>),
}

Variants§

§

Value(&'a Meta<Value<M>, M>)

§

Entry(&'a Entry<M>)

§

Key(&'a Meta<Key, M>)

Implementations§

source

pub fn is_entry(&self) -> bool

Examples found in repository?
src/lib.rs (line 751)
750
751
752
	fn strip(self) -> Self::Stripped {
		self.strip()
	}
Examples found in repository?
src/lib.rs (line 832)
829
830
831
832
833
834
835
836
837
	fn next(&mut self) -> Option<Self::Item> {
		match self.stack.pop() {
			Some(v) => {
				self.stack.extend(v.sub_fragments());
				Some(v)
			}
			None => None,
		}
	}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Wraps self inside a Meta<Self, M> using the given metadata. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.