[−][src]Struct solana_sdk::abi_digester::AbiDigester
Implementations
impl AbiDigester
[src]
pub fn create() -> Self
[src]
pub fn create_new(&self) -> Self
[src]
pub fn create_new_opaque(&self, top_scope: &str) -> Self
[src]
pub fn create_child(&self) -> Self
[src]
pub fn create_enum_child(&self) -> Self
[src]
pub fn digest_data<T: ?Sized + Serialize>(&mut self, value: &T) -> DigestResult
[src]
pub fn update(&mut self, strs: &[&str])
[src]
pub fn update_with_type<T: ?Sized>(&mut self, label: &str)
[src]
pub fn update_with_string(&mut self, label: String)
[src]
pub fn finalize(self) -> Hash
[src]
Trait Implementations
impl Debug for AbiDigester
[src]
impl SerializeMap for AbiDigester
[src]
type Ok = Self
Must match the Ok
type of our Serializer
.
type Error = DigestError
Must match the Error
type of our Serializer
.
fn serialize_key<T: ?Sized + Serialize>(
&mut self,
key: &T
) -> Result<(), DigestError>
[src]
&mut self,
key: &T
) -> Result<(), DigestError>
fn serialize_value<T: ?Sized + Serialize>(
&mut self,
value: &T
) -> Result<(), DigestError>
[src]
&mut self,
value: &T
) -> Result<(), DigestError>
fn end(self) -> DigestResult
[src]
fn serialize_entry<K, V>(
&mut self,
key: &K,
value: &V
) -> Result<(), Self::Error> where
K: Serialize + ?Sized,
V: Serialize + ?Sized,
[src]
&mut self,
key: &K,
value: &V
) -> Result<(), Self::Error> where
K: Serialize + ?Sized,
V: Serialize + ?Sized,
impl SerializeSeq for AbiDigester
[src]
type Ok = Self
Must match the Ok
type of our Serializer
.
type Error = DigestError
Must match the Error
type of our Serializer
.
fn serialize_element<T: ?Sized + Serialize>(
&mut self,
data: &T
) -> Result<(), DigestError>
[src]
&mut self,
data: &T
) -> Result<(), DigestError>
fn end(self) -> DigestResult
[src]
impl SerializeStruct for AbiDigester
[src]
type Ok = Self
Must match the Ok
type of our Serializer
.
type Error = DigestError
Must match the Error
type of our Serializer
.
fn serialize_field<T: ?Sized + Serialize>(
&mut self,
key: &'static str,
data: &T
) -> Result<(), DigestError>
[src]
&mut self,
key: &'static str,
data: &T
) -> Result<(), DigestError>
fn end(self) -> DigestResult
[src]
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>
[src]
impl SerializeStructVariant for AbiDigester
[src]
type Ok = Self
Must match the Ok
type of our Serializer
.
type Error = DigestError
Must match the Error
type of our Serializer
.
fn serialize_field<T: ?Sized + Serialize>(
&mut self,
key: &'static str,
data: &T
) -> Result<(), DigestError>
[src]
&mut self,
key: &'static str,
data: &T
) -> Result<(), DigestError>
fn end(self) -> DigestResult
[src]
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>
[src]
impl SerializeTuple for AbiDigester
[src]
type Ok = Self
Must match the Ok
type of our Serializer
.
type Error = DigestError
Must match the Error
type of our Serializer
.
fn serialize_element<T: ?Sized + Serialize>(
&mut self,
data: &T
) -> Result<(), DigestError>
[src]
&mut self,
data: &T
) -> Result<(), DigestError>
fn end(self) -> DigestResult
[src]
impl SerializeTupleStruct for AbiDigester
[src]
type Ok = Self
Must match the Ok
type of our Serializer
.
type Error = DigestError
Must match the Error
type of our Serializer
.
fn serialize_field<T: ?Sized + Serialize>(
&mut self,
data: &T
) -> Result<(), DigestError>
[src]
&mut self,
data: &T
) -> Result<(), DigestError>
fn end(self) -> DigestResult
[src]
impl SerializeTupleVariant for AbiDigester
[src]
type Ok = Self
Must match the Ok
type of our Serializer
.
type Error = DigestError
Must match the Error
type of our Serializer
.
fn serialize_field<T: ?Sized + Serialize>(
&mut self,
data: &T
) -> Result<(), DigestError>
[src]
&mut self,
data: &T
) -> Result<(), DigestError>
fn end(self) -> DigestResult
[src]
impl Serializer for AbiDigester
[src]
type Ok = Self
The output type produced by this Serializer
during successful
serialization. Most serializers that produce text or binary output
should set Ok = ()
and serialize into an io::Write
or buffer
contained within the Serializer
instance. Serializers that build
in-memory data structures may be simplified by using Ok
to propagate
the data structure around. Read more
type Error = DigestError
The error type when some error occurs during serialization.
type SerializeSeq = Self
Type returned from serialize_seq
for serializing the content of the
sequence. Read more
type SerializeTuple = Self
Type returned from serialize_tuple
for serializing the content of
the tuple. Read more
type SerializeTupleStruct = Self
Type returned from serialize_tuple_struct
for serializing the
content of the tuple struct. Read more
type SerializeTupleVariant = Self
Type returned from serialize_tuple_variant
for serializing the
content of the tuple variant. Read more
type SerializeMap = Self
Type returned from serialize_map
for serializing the content of the
map. Read more
type SerializeStruct = Self
Type returned from serialize_struct
for serializing the content of
the struct. Read more
type SerializeStructVariant = Self
Type returned from serialize_struct_variant
for serializing the
content of the struct variant. Read more
fn serialize_bool(self, _data: bool) -> DigestResult
[src]
fn serialize_i8(self, _data: i8) -> DigestResult
[src]
fn serialize_i16(self, _data: i16) -> DigestResult
[src]
fn serialize_i32(self, _data: i32) -> DigestResult
[src]
fn serialize_i64(self, _data: i64) -> DigestResult
[src]
fn serialize_i128(self, _data: i128) -> DigestResult
[src]
fn serialize_u8(self, _data: u8) -> DigestResult
[src]
fn serialize_u16(self, _data: u16) -> DigestResult
[src]
fn serialize_u32(self, _data: u32) -> DigestResult
[src]
fn serialize_u64(self, _data: u64) -> DigestResult
[src]
fn serialize_u128(self, _data: u128) -> DigestResult
[src]
fn serialize_f32(self, _data: f32) -> DigestResult
[src]
fn serialize_f64(self, _data: f64) -> DigestResult
[src]
fn serialize_char(self, _data: char) -> DigestResult
[src]
fn serialize_str(self, _data: &str) -> DigestResult
[src]
fn serialize_unit(self) -> DigestResult
[src]
fn serialize_bytes(self, v: &[u8]) -> DigestResult
[src]
fn serialize_none(self) -> DigestResult
[src]
fn serialize_some<T: ?Sized>(self, v: &T) -> DigestResult where
T: Serialize,
[src]
T: Serialize,
fn serialize_unit_struct(self, name: &'static str) -> DigestResult
[src]
fn serialize_unit_variant(
self,
_name: &'static str,
index: u32,
variant: &'static str
) -> DigestResult
[src]
self,
_name: &'static str,
index: u32,
variant: &'static str
) -> DigestResult
fn serialize_newtype_struct<T: ?Sized>(
self,
name: &'static str,
v: &T
) -> DigestResult where
T: Serialize,
[src]
self,
name: &'static str,
v: &T
) -> DigestResult where
T: Serialize,
fn serialize_newtype_variant<T: ?Sized>(
self,
_name: &'static str,
i: u32,
variant: &'static str,
v: &T
) -> DigestResult where
T: Serialize,
[src]
self,
_name: &'static str,
i: u32,
variant: &'static str,
v: &T
) -> DigestResult where
T: Serialize,
fn serialize_seq(self, len: Option<usize>) -> DigestResult
[src]
fn serialize_tuple(self, len: usize) -> DigestResult
[src]
fn serialize_tuple_struct(self, name: &'static str, len: usize) -> DigestResult
[src]
fn serialize_tuple_variant(
self,
_name: &'static str,
i: u32,
variant: &'static str,
len: usize
) -> DigestResult
[src]
self,
_name: &'static str,
i: u32,
variant: &'static str,
len: usize
) -> DigestResult
fn serialize_map(self, len: Option<usize>) -> DigestResult
[src]
fn serialize_struct(self, name: &'static str, len: usize) -> DigestResult
[src]
fn serialize_struct_variant(
self,
_name: &'static str,
i: u32,
variant: &'static str,
len: usize
) -> DigestResult
[src]
self,
_name: &'static str,
i: u32,
variant: &'static str,
len: usize
) -> DigestResult
fn collect_seq<I>(self, iter: I) -> Result<Self::Ok, Self::Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Serialize,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Serialize,
fn collect_map<K, V, I>(self, iter: I) -> Result<Self::Ok, Self::Error> where
I: IntoIterator<Item = (K, V)>,
K: Serialize,
V: Serialize,
[src]
I: IntoIterator<Item = (K, V)>,
K: Serialize,
V: Serialize,
fn collect_str<T>(self, value: &T) -> Result<Self::Ok, Self::Error> where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
fn is_human_readable(&self) -> bool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AbiDigester
impl !Send for AbiDigester
impl !Sync for AbiDigester
impl Unpin for AbiDigester
impl !UnwindSafe for AbiDigester
Blanket Implementations
impl<T> AbiExample for T
[src]
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,
pub 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> Same<T> for T
type Output = T
Should always be Self
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,