[−][src]Trait runestick::IntoComponent
Trait for encoding the current type into a component.
Required methods
fn as_component_ref(&self) -> ComponentRef<'_>
Convert into a component directly.
Provided methods
fn into_component(self) -> Component
Convert into component.
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,
H: Hasher,
Hash the current component.
Implementations on Foreign Types
impl<'_> IntoComponent for &'_ str
[src]
fn as_component_ref(&self) -> ComponentRef<'_>
[src]
fn into_component(self) -> Component
[src]
fn write_component(self, output: &mut Vec<u8>)
[src]
fn hash_component<H>(self, hasher: &mut H) where
H: Hasher,
[src]
H: Hasher,
impl<'_, '_> IntoComponent for &'_ &'_ str
[src]
fn as_component_ref(&self) -> ComponentRef<'_>
[src]
fn into_component(self) -> Component
[src]
fn write_component(self, output: &mut Vec<u8>)
[src]
fn hash_component<H>(self, hasher: &mut H) where
H: Hasher,
[src]
H: Hasher,
impl IntoComponent for String
[src]
fn as_component_ref(&self) -> ComponentRef<'_>
[src]
fn into_component(self) -> Component
[src]
fn write_component(self, output: &mut Vec<u8>)
[src]
fn hash_component<H>(self, hasher: &mut H) where
H: Hasher,
[src]
H: Hasher,
impl<'_> IntoComponent for &'_ String
[src]
fn as_component_ref(&self) -> ComponentRef<'_>
[src]
fn into_component(self) -> Component
[src]
fn write_component(self, output: &mut Vec<u8>)
[src]
fn hash_component<H>(self, hasher: &mut H) where
H: Hasher,
[src]
H: Hasher,
impl<'_> IntoComponent for Cow<'_, str>
[src]
fn as_component_ref(&self) -> ComponentRef<'_>
[src]
fn into_component(self) -> Component
[src]
fn write_component(self, output: &mut Vec<u8>)
[src]
fn hash_component<H>(self, hasher: &mut H) where
H: Hasher,
[src]
H: Hasher,
Implementors
impl IntoComponent for Component
[src]
fn as_component_ref(&self) -> ComponentRef<'_>
[src]
fn into_component(self) -> Component
[src]
impl IntoComponent for RawStr
[src]
fn as_component_ref(&self) -> ComponentRef<'_>
[src]
fn into_component(self) -> Component
[src]
fn write_component(self, output: &mut Vec<u8>)
[src]
fn hash_component<H>(self, hasher: &mut H) where
H: Hasher,
[src]
H: Hasher,
impl<'_> IntoComponent for &'_ Component
[src]
fn as_component_ref(&self) -> ComponentRef<'_>
[src]
fn into_component(self) -> Component
[src]
impl<'_> IntoComponent for &'_ RawStr
[src]
fn as_component_ref(&self) -> ComponentRef<'_>
[src]
fn into_component(self) -> Component
[src]
fn write_component(self, output: &mut Vec<u8>)
[src]
fn hash_component<H>(self, hasher: &mut H) where
H: Hasher,
[src]
H: Hasher,