pub struct Table<T: TableEntry> { /* private fields */ }Expand description
Generic table for storing named entries
Implementations§
Source§impl<T: TableEntry> Table<T>
impl<T: TableEntry> Table<T>
Sourcepub fn with_handle(handle: Handle) -> Self
pub fn with_handle(handle: Handle) -> Self
Create a table with a specific handle
Sourcepub fn set_handle(&mut self, handle: Handle)
pub fn set_handle(&mut self, handle: Handle)
Set the table’s handle
Sourcepub fn add_or_replace(&mut self, entry: T)
pub fn add_or_replace(&mut self, entry: T)
Add or replace an entry in the table (parsed data wins over defaults)
Trait Implementations§
Source§impl<T: TableEntry> Default for Table<T>
impl<T: TableEntry> Default for Table<T>
impl<T: TableEntry> StructuralPartialEq for Table<T>
Auto Trait Implementations§
impl<T> Freeze for Table<T>
impl<T> RefUnwindSafe for Table<T>where
T: RefUnwindSafe,
impl<T> Send for Table<T>where
T: Send,
impl<T> Sync for Table<T>where
T: Sync,
impl<T> Unpin for Table<T>where
T: Unpin,
impl<T> UnsafeUnpin for Table<T>
impl<T> UnwindSafe for Table<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