pub struct TypeNode {
pub id: &'static str,
pub parent: Option<&'static str>,
pub kind: TypeKind,
pub ffi_name: &'static str,
pub wire_hash: u64,
pub denotation: &'static str,
}Expand description
Static type-identity carrier. Identity is pointer equality;
subtype queries route through Lattice.
Fields§
§id: &'static strDotted-namespace identifier ("any", "tensor.f32").
Must be unique across submissions.
parent: Option<&'static str>Parent’s id, or None for the root.
kind: TypeKindDispatchable leaf vs. abstract bound.
ffi_name: &'static strC-FFI struct name (cbindgen). Empty for abstract nodes.
wire_hash: u64Wire-envelope discriminator. Concrete leaves non-zero; abstract nodes 0.
denotation: &'static strONNX denotation stamped on ValueInfoProto.type.denotation.
Empty when no canonical denotation exists.
Implementations§
Source§impl TypeNode
impl TypeNode
Sourcepub fn is_subtype_of(&'static self, other: &'static TypeNode) -> bool
pub fn is_subtype_of(&'static self, other: &'static TypeNode) -> bool
true if self is other or a descendant. Cached on
the global Lattice.
Sourcepub fn is_concrete(&self) -> bool
pub fn is_concrete(&self) -> bool
true iff this node is a concrete (dispatchable) leaf.
Sourcepub fn is_abstract(&self) -> bool
pub fn is_abstract(&self) -> bool
true iff this node is an abstract interior bound.
Trait Implementations§
impl Copy for TypeNode
impl Eq for TypeNode
Auto Trait Implementations§
impl Freeze for TypeNode
impl RefUnwindSafe for TypeNode
impl Send for TypeNode
impl Sync for TypeNode
impl Unpin for TypeNode
impl UnsafeUnpin for TypeNode
impl UnwindSafe for TypeNode
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