pub enum Layout {
Segment(usize),
Group {
name: String,
items: Vec<Layout>,
},
}Expand description
Where one segment, or one group of segments, sits in the matched structure. Segments are named by their index into the list that was matched, so the caller keeps ownership of the segments themselves.
Variants§
Segment(usize)
The segment at this index in the input list.
Group
A group occurrence and what it contains.
Implementations§
Trait Implementations§
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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