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
, { ... } }

Trait for encoding the current type into a component.

Required methods

fn as_component_ref(&self) -> ComponentRef<'_>[src]

Convert into a component directly.

Loading content...

Provided methods

fn into_component(self) -> Component[src]

Convert into component.

fn write_component(self, output: &mut Vec<u8>)[src]

Write a component directly to a buffer.

fn hash_component<H>(self, hasher: &mut H) where
    H: Hasher
[src]

Hash the current component.

Loading content...

Implementations on Foreign Types

impl IntoComponent for &str[src]

impl IntoComponent for &&str[src]

impl IntoComponent for String[src]

impl IntoComponent for &String[src]

impl IntoComponent for Cow<'_, str>[src]

Loading content...

Implementors

Loading content...