Trait Type

Source
pub trait Type: Element + AsTypes {
    // Required methods
    fn type_string(&self) -> String;
    fn fixed_wire_size(&self) -> Option<u32>;
    fn is_class_type(&self) -> bool;
    fn tag_format(&self) -> Option<TagFormat>;
    fn supported_encodings(&self) -> SupportedEncodings;
}

Required Methods§

Trait Implementations§

Source§

impl<'a> TryFrom<&'a Node> for &'a dyn Type

Source§

fn try_from(node: &'a Node) -> Result<&'a dyn Type, Self::Error>

Attempts to unwrap a node to a dynamically typed reference of a Slice Type.

If the Slice element held by the node implements Type, this succeeds and returns a typed reference, otherwise this fails and returns an error message.

Source§

type Error = LookupError

The type returned in the event of a conversion error.

Implementors§