pub(crate) struct Array {
items: Vec<Item>,
inner: Trivia,
}Expand description
An array. Its items are only reachable as a whole.
Fields§
§items: Vec<Item>§inner: TriviaTrivia before the closing bracket.
Implementations§
Source§impl Array
impl Array
pub(in json) const fn parsed( items: Vec<Item>, inner: Trivia, ) -> Self
pub(super) fn build(nodes: &[Annotated], dialect: Dialect, depth: usize) -> Self
pub(super) fn trivia_mut(&mut self, visit: &mut dyn FnMut(&mut Trivia))
pub(super) fn write(&self, f: &mut Formatter<'_>, dialect: Dialect) -> Result
Trait Implementations§
impl Eq for Array
impl StructuralPartialEq for Array
Auto Trait Implementations§
impl Freeze for Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnsafeUnpin for Array
impl UnwindSafe for Array
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.