pub struct DynamicDataValue { /* private fields */ }Expand description
Contents of a Dynamic::Data.
Implementations§
Source§impl DynamicDataValue
impl DynamicDataValue
Sourcepub fn reset(&mut self)
pub fn reset(&mut self)
Removes all values from this data, resetting them to their default values.
Trait Implementations§
Source§impl Clone for DynamicDataValue
impl Clone for DynamicDataValue
Source§fn clone(&self) -> DynamicDataValue
fn clone(&self) -> DynamicDataValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DynamicDataValue
impl Debug for DynamicDataValue
Source§impl Decodable for DynamicDataValue
impl Decodable for DynamicDataValue
Source§fn decode(
&mut self,
reader: &mut (impl ReadsDecodable + ?Sized),
header: Option<DataHeader>,
) -> Result<(), CodecError>
fn decode( &mut self, reader: &mut (impl ReadsDecodable + ?Sized), header: Option<DataHeader>, ) -> Result<(), CodecError>
Source§fn ensure_header(
header: Option<DataHeader>,
supported_ordinals: &[FormatMetadata],
) -> Result<DataHeader, CodecError>
fn ensure_header( header: Option<DataHeader>, supported_ordinals: &[FormatMetadata], ) -> Result<DataHeader, CodecError>
Returns
Ok(header) iff header exists
and matches one of suppported_ordinals.Source§fn ensure_no_header(header: Option<DataHeader>) -> Result<(), CodecError>
fn ensure_no_header(header: Option<DataHeader>) -> Result<(), CodecError>
Returns
Ok(()) iff header is None.Source§impl Encodable for DynamicDataValue
impl Encodable for DynamicDataValue
Source§fn encode(
&self,
writer: &mut (impl WritesEncodable + ?Sized),
) -> Result<(), CodecError>
fn encode( &self, writer: &mut (impl WritesEncodable + ?Sized), ) -> Result<(), CodecError>
Source§fn encode_header(
&self,
writer: &mut (impl WritesEncodable + ?Sized),
) -> Result<(), CodecError>
fn encode_header( &self, writer: &mut (impl WritesEncodable + ?Sized), ) -> Result<(), CodecError>
Encodes this thing’s data header into
writer. Read moreSource§impl PartialEq for DynamicDataValue
impl PartialEq for DynamicDataValue
impl StructuralPartialEq for DynamicDataValue
Auto Trait Implementations§
impl Freeze for DynamicDataValue
impl RefUnwindSafe for DynamicDataValue
impl Send for DynamicDataValue
impl Sync for DynamicDataValue
impl Unpin for DynamicDataValue
impl UnwindSafe for DynamicDataValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> TryAsFormat<T> for T
impl<T> TryAsFormat<T> for T
Source§type Error = Infallible
type Error = Infallible
Source§fn try_as_format(&self) -> Result<&T, <T as TryAsFormat<T>>::Error>
fn try_as_format(&self) -> Result<&T, <T as TryAsFormat<T>>::Error>
Returns a
D-formatted reference to the data.