#[non_exhaustive]pub struct Entry {
pub key: String,
pub value: Range<usize>,
pub written: Written,
pub string: Option<String>,
}Available on crate features
input-toml or input-yaml only.Expand description
One entry of the top-level mapping or table of a text.
Non-exhaustive: a later release can add a field.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: StringThe key, as the parser read it: quotes and escapes resolved. A YAML key that is a number, a boolean or a null is its text as written.
value: Range<usize>The bytes of the value in Input::text, as written. A quoted string
includes its quotes and a block scalar its header. An anchor or a tag
before a YAML value is outside it, and an alias is *name.
written: WrittenHow the value is written.
string: Option<String>The text of the value, when the parser reads it as a string, and None
for a number, a boolean, a null, a date, a collection or an alias to
one. A YAML alias to a string, and a scalar under !!str, hold the
string.
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Forget for Entry
impl Freeze for Entry
impl Move for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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