Trait runestick::IntoComponent [−][src]
pub trait IntoComponent: Sized { fn as_component_ref(&self) -> ComponentRef<'_>; fn into_component(self) -> Component { ... } fn write_component(self, output: &mut Vec<u8>) { ... } fn hash_component<H>(self, hasher: &mut H)
where
H: Hasher, { ... } }
Expand description
Trait for encoding the current type into a component.
Required methods
fn as_component_ref(&self) -> ComponentRef<'_>
fn as_component_ref(&self) -> ComponentRef<'_>
Convert into a component directly.
Provided methods
fn into_component(self) -> Component
fn into_component(self) -> Component
Convert into component.
fn write_component(self, output: &mut Vec<u8>)
fn write_component(self, output: &mut Vec<u8>)
Write a component directly to a buffer.
fn hash_component<H>(self, hasher: &mut H) where
H: Hasher,
fn hash_component<H>(self, hasher: &mut H) where
H: Hasher,
Hash the current component.