pub(crate) struct Entries {
items: Vec<(String, Annotated)>,
dotted: bool,
}Expand description
Object entries, ordered by explicit order first and then by key.
Fields§
§items: Vec<(String, Annotated)>§dotted: boolImplementations§
Source§impl Entries
impl Entries
pub(crate) fn sorted(entries: Vec<(Option<i64>, String, Annotated)>) -> Self
pub(crate) const fn set_dotted(&mut self, dotted: bool)
pub(crate) const fn is_dotted(&self) -> bool
Sourcepub(crate) fn carries_comment(&self) -> bool
pub(crate) fn carries_comment(&self) -> bool
Whether any entry carries a comment, at any depth.
pub(crate) const fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<'a> IntoIterator for &'a Entries
impl<'a> IntoIterator for &'a Entries
Auto Trait Implementations§
impl Freeze for Entries
impl RefUnwindSafe for Entries
impl Send for Entries
impl Sync for Entries
impl Unpin for Entries
impl UnsafeUnpin for Entries
impl UnwindSafe for Entries
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