Trait runestick::IntoComponent [−][src]
Trait for encoding the current type into a component.
Required methods
fn as_component_ref(&self) -> ComponentRef<'_>
[src]
Convert into a component directly.
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]
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 &ComponentRef<'_>
[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 ComponentRef<'_>
[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,