Enum advent_of_code_2022::day_13::NestedList
source · enum NestedList {
Value(u32),
List(Vec<NestedList>),
}
Variants§
Value(u32)
List(Vec<NestedList>)
Implementations§
source§impl NestedList
impl NestedList
fn push(&mut self, item: NestedList)
Trait Implementations§
source§impl Clone for NestedList
impl Clone for NestedList
source§fn clone(&self) -> NestedList
fn clone(&self) -> NestedList
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NestedList
impl Debug for NestedList
source§impl Ord for NestedList
impl Ord for NestedList
source§impl PartialEq<NestedList> for NestedList
impl PartialEq<NestedList> for NestedList
source§fn eq(&self, other: &NestedList) -> bool
fn eq(&self, other: &NestedList) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<NestedList> for NestedList
impl PartialOrd<NestedList> for NestedList
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for NestedList
impl StructuralEq for NestedList
impl StructuralPartialEq for NestedList
Auto Trait Implementations§
impl RefUnwindSafe for NestedList
impl Send for NestedList
impl Sync for NestedList
impl Unpin for NestedList
impl UnwindSafe for NestedList
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