pub struct TaggedElement<T> {
pub tag: Tag,
pub element: T,
}
Expand description
Combination of a tag and a child table.
Used in script and feature lists where a data structure has an array of records with each containing a tag and an offset to a table. This allows us to provide convenience methods that return both values.
Fields§
§tag: Tag
§element: T
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for TaggedElement<T>
impl<T: Clone> Clone for TaggedElement<T>
Source§fn clone(&self) -> TaggedElement<T>
fn clone(&self) -> TaggedElement<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for TaggedElement<T>where
T: Freeze,
impl<T> RefUnwindSafe for TaggedElement<T>where
T: RefUnwindSafe,
impl<T> Send for TaggedElement<T>where
T: Send,
impl<T> Sync for TaggedElement<T>where
T: Sync,
impl<T> Unpin for TaggedElement<T>where
T: Unpin,
impl<T> UnwindSafe for TaggedElement<T>where
T: UnwindSafe,
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