Trait yamlette::model::Model

source ·
pub trait Model: Send + Sync {
Show 16 methods fn get_tag(&self) -> Cow<'static, str>; fn as_any(&self) -> &dyn Any; fn as_mut_any(&mut self) -> &mut dyn Any; fn is_collection(&self) -> bool { ... } fn is_sequence(&self) -> bool { ... } fn is_dictionary(&self) -> bool { ... } fn is_metamodel(&self) -> bool { ... } fn is_decodable(&self) -> bool { ... } fn is_encodable(&self) -> bool { ... } fn has_default(&self) -> bool { ... } fn get_default(&self) -> TaggedValue { ... } fn meta_init(
        &self,
        _anchor: Option<String>,
        _tag: Option<String>,
        _value: &[u8]
    ) -> Result<TaggedValue, ()> { ... } fn decode(&self, _explicit: bool, _value: &[u8]) -> Result<TaggedValue, ()> { ... } fn decode11(&self, explicit: bool, value: &[u8]) -> Result<TaggedValue, ()> { ... } fn encode(
        &self,
        _renderer: &Renderer,
        _value: TaggedValue,
        _tags: &mut dyn Iterator<Item = &(Cow<'static, str>, Cow<'static, str>)>
    ) -> Result<Rope, TaggedValue> { ... } fn compose(
        &self,
        _renderer: &Renderer,
        _value: TaggedValue,
        _tags: &mut dyn Iterator<Item = &(Cow<'static, str>, Cow<'static, str>)>,
        _children: &mut [Rope]
    ) -> Rope { ... }
}

Required Methods§

Provided Methods§

Implementors§