[−][src]Struct ssb_tfk::TypeFormatKey
TypeFormatKey is able to represent any of the current ssb key types and encode / decode them to the TFK binary representation.
Fields
key_type: KeyType
format: Format
Implementations
impl TypeFormatKey
[src]
pub fn new(key_type: KeyType, format: Format) -> TypeFormatKey
[src]
pub fn encode_write<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn decode_read<R: Read>(reader: &mut R) -> Result<TypeFormatKey, Error>
[src]
Trait Implementations
impl Debug for TypeFormatKey
[src]
impl PartialEq<TypeFormatKey> for TypeFormatKey
[src]
fn eq(&self, other: &TypeFormatKey) -> bool
[src]
fn ne(&self, other: &TypeFormatKey) -> bool
[src]
impl StructuralPartialEq for TypeFormatKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for TypeFormatKey
impl Send for TypeFormatKey
impl Sync for TypeFormatKey
impl Unpin for TypeFormatKey
impl UnwindSafe for TypeFormatKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,