Trait ed25519_dalek::pkcs8::spki::der::EncodeValue
pub trait EncodeValue {
// Required methods
fn value_len(&self) -> Result<Length, Error>;
fn encode_value(&self, encoder: &mut impl Writer) -> Result<(), Error>;
// Provided method
fn header(&self) -> Result<Header, Error>
where Self: Tagged { ... }
}
Available on crate feature
pkcs8
only.Expand description
Encode the value part of a Tag-Length-Value encoded field, sans the [Tag
]
and Length
.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
§impl EncodeValue for bool
impl EncodeValue for bool
§impl EncodeValue for i8
impl EncodeValue for i8
§impl EncodeValue for i16
impl EncodeValue for i16
§impl EncodeValue for i32
impl EncodeValue for i32
§impl EncodeValue for i64
impl EncodeValue for i64
§impl EncodeValue for i128
impl EncodeValue for i128
§impl EncodeValue for str
impl EncodeValue for str
§impl EncodeValue for u8
impl EncodeValue for u8
§impl EncodeValue for u16
impl EncodeValue for u16
§impl EncodeValue for u32
impl EncodeValue for u32
§impl EncodeValue for u64
impl EncodeValue for u64
§impl EncodeValue for u128
impl EncodeValue for u128
§impl EncodeValue for ()
impl EncodeValue for ()
§impl EncodeValue for String
Available on crate feature alloc
only.
impl EncodeValue for String
Available on crate feature
alloc
only.§impl EncodeValue for SystemTime
Available on crate feature std
only.
impl EncodeValue for SystemTime
Available on crate feature
std
only.§impl<T> EncodeValue for Box<T>where
T: EncodeValue,
Available on crate feature alloc
only.
impl<T> EncodeValue for Box<T>where
T: EncodeValue,
Available on crate feature
alloc
only.§impl<T> EncodeValue for Vec<T>where
T: Encode,
Available on crate feature alloc
only.
impl<T> EncodeValue for Vec<T>where
T: Encode,
Available on crate feature
alloc
only.§impl<T, const N: usize> EncodeValue for [T; N]where
T: Encode,
impl<T, const N: usize> EncodeValue for [T; N]where
T: Encode,
Implementors§
impl EncodeValue for BitStringRef<'_>
impl EncodeValue for ObjectIdentifier
impl EncodeValue for PrivateKeyInfo<'_>
impl EncodeValue for BitString
impl EncodeValue for BmpString
impl EncodeValue for GeneralizedTime
impl EncodeValue for Ia5String
impl EncodeValue for Int
impl EncodeValue for Null
impl EncodeValue for OctetString
impl EncodeValue for OctetStringRef<'_>
impl EncodeValue for PrintableString
impl EncodeValue for SequenceRef<'_>
impl EncodeValue for TeletexString
impl EncodeValue for Uint
impl EncodeValue for UtcTime
impl EncodeValue for Any
impl EncodeValue for AnyRef<'_>
impl EncodeValue for DateTime
impl<'a> EncodeValue for Ia5StringRef<'a>
impl<'a> EncodeValue for IntRef<'a>
impl<'a> EncodeValue for PrintableStringRef<'a>
impl<'a> EncodeValue for TeletexStringRef<'a>
impl<'a> EncodeValue for UintRef<'a>
impl<'a> EncodeValue for Utf8StringRef<'a>
impl<'a> EncodeValue for VideotexStringRef<'a>
impl<'a, Params, Key> EncodeValue for SubjectPublicKeyInfo<Params, Key>
impl<'a, T> EncodeValue for ContextSpecificRef<'a, T>where
T: EncodeValue + Tagged,
impl<'a, T> EncodeValue for SetOfVec<T>
Available on crate feature
alloc
only.