pub struct MemberTable {
pub refset: u64,
pub names: Vec<String>,
pub columns: Vec<MemberColumn>,
}Expand description
One concept-based refset. Field columns preserve member rows and their metadata.
Fields§
§refset: u64§names: Vec<String>§columns: Vec<MemberColumn>Implementations§
Source§impl MemberTable
impl MemberTable
pub fn append(&mut self, other: Self) -> Result<()>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn column(&self, name: &str) -> Option<&MemberColumn>
pub fn validate(&self) -> Result<()>
Sourcepub fn write(&self, directory: &Path) -> Result<MemberManifest>
pub fn write(&self, directory: &Path) -> Result<MemberManifest>
Writes rows sorted by referenced component, ties in their current order.
Sorted, the referenced components are small gaps from one row to the next, and neighbouring rows of a map share most of their other fields too: the UK tables pack to under half their size in release order.
Trait Implementations§
Source§impl Clone for MemberTable
impl Clone for MemberTable
Auto Trait Implementations§
impl Freeze for MemberTable
impl RefUnwindSafe for MemberTable
impl Send for MemberTable
impl Sync for MemberTable
impl Unpin for MemberTable
impl UnsafeUnpin for MemberTable
impl UnwindSafe for MemberTable
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