pub struct GroupTable<'a> { /* private fields */ }Expand description
The structure of a repeating group.
Codegen emits these as const items. Tables built at runtime are
OwnedGroupTables.
Implementations§
Source§impl<'a> GroupTable<'a>
impl<'a> GroupTable<'a>
Sourcepub const fn new(
count_tag: Tag,
delimiter: Tag,
members: &'a [Tag],
nested: &'a [GroupTable<'a>],
) -> Self
pub const fn new( count_tag: Tag, delimiter: Tag, members: &'a [Tag], nested: &'a [GroupTable<'a>], ) -> Self
A group counted by count_tag, whose instances start with
delimiter and directly contain members.
§Panics
If members is not sorted and free of duplicates, or does not
include the delimiter and every nested count tag. In a const,
this is a compile error.
Trait Implementations§
Source§impl<'a> Clone for GroupTable<'a>
impl<'a> Clone for GroupTable<'a>
impl<'a> Copy for GroupTable<'a>
Source§impl<'a> Debug for GroupTable<'a>
impl<'a> Debug for GroupTable<'a>
impl GroupLayout for GroupTable<'_>
Auto Trait Implementations§
impl<'a> Forget for GroupTable<'a>
impl<'a> Freeze for GroupTable<'a>
impl<'a> Move for GroupTable<'a>
impl<'a> RefUnwindSafe for GroupTable<'a>
impl<'a> Send for GroupTable<'a>
impl<'a> Sync for GroupTable<'a>
impl<'a> Unpin for GroupTable<'a>
impl<'a> UnsafeUnpin for GroupTable<'a>
impl<'a> UnwindSafe for GroupTable<'a>
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