Struct switchboard_utils::AggregatorResultParseOptimized [−][src]
pub struct AggregatorResultParseOptimized { pub parent: PubkeyBuffer, pub result: Option<RoundResult>, }
Fields
parent: PubkeyBuffer
result: Option<RoundResult>
Trait Implementations
Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
Deserialize this instance from a slice of bytes.
Whether Self is u8.
NOTE: Vec<u8>
is the most common use-case for serialization and deserialization, it’s
worth handling it as a special case to improve performance.
It’s a workaround for specific Vec<u8>
implementation versus generic Vec<T>
implementation. See https://github.com/rust-lang/rfcs/pull/1210 for details. Read more
impl BorshSerialize for AggregatorResultParseOptimized where
PubkeyBuffer: BorshSerialize,
Option<RoundResult>: BorshSerialize,
[src]
impl BorshSerialize for AggregatorResultParseOptimized where
PubkeyBuffer: BorshSerialize,
Option<RoundResult>: BorshSerialize,
[src]Serialize this instance into a vector of bytes.
Whether Self is u8.
NOTE: Vec<u8>
is the most common use-case for serialization and deserialization, it’s
worth handling it as a special case to improve performance.
It’s a workaround for specific Vec<u8>
implementation versus generic Vec<T>
implementation. See https://github.com/rust-lang/rfcs/pull/1210 for details. Read more
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for AggregatorResultParseOptimized
impl Sync for AggregatorResultParseOptimized
impl Unpin for AggregatorResultParseOptimized
impl UnwindSafe for AggregatorResultParseOptimized
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V