pub struct Catalog {
pub version: Value,
pub tags: IndexMap<String, Node>,
pub types: IndexMap<String, TypeDef>,
/* private fields */
}Expand description
The controller structure: tags and structure types (string types left out).
Fields§
§version: ValueThe tag table version.
Tags by name, in upload order.
types: IndexMap<String, TypeDef>Structure types by name.
Implementations§
Source§impl Catalog
impl Catalog
Sourcepub fn new(
version: Json,
tags: IndexMap<String, Node>,
types: IndexMap<String, TypeDef>,
) -> Self
pub fn new( version: Json, tags: IndexMap<String, Node>, types: IndexMap<String, TypeDef>, ) -> Self
A catalog of these tags and types; computes the lookup index and which types read whole.
Sourcepub fn info(&self, name: &str) -> Option<&Node>
pub fn info(&self, name: &str) -> Option<&Node>
The definition of a tag or member path, indexes and element counts ignored (as ciplink’s
get_tag_info); None for unknown names and bits.
Sourcepub fn struct_size(&self, node: &Node) -> Option<u64>
pub fn struct_size(&self, node: &Node) -> Option<u64>
The structure size of a struct node that can be read whole, else None.
Trait Implementations§
impl StructuralPartialEq for Catalog
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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