pub struct StructValue { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Clone for StructValue
impl Clone for StructValue
Source§fn clone(&self) -> StructValue
fn clone(&self) -> StructValue
Returns a duplicate 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 StructValue
impl Debug for StructValue
Source§impl Default for StructValue
impl Default for StructValue
Source§fn default() -> StructValue
fn default() -> StructValue
Returns the “default value” for a type. Read more
Source§impl DescribeType for StructValue
impl DescribeType for StructValue
Source§impl<'de> Deserialize<'de> for StructValue
impl<'de> Deserialize<'de> for StructValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<StructValue> for Value
impl From<StructValue> for Value
Source§fn from(value: StructValue) -> Self
fn from(value: StructValue) -> Self
Converts to this type from the input type.
Source§impl<S, V> FromIterator<(S, V)> for StructValue
impl<S, V> FromIterator<(S, V)> for StructValue
Source§impl FromReflect for StructValue
impl FromReflect for StructValue
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl Hash for StructValue
impl Hash for StructValue
Source§impl Ord for StructValue
impl Ord for StructValue
Source§fn cmp(&self, other: &StructValue) -> Ordering
fn cmp(&self, other: &StructValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StructValue
impl PartialEq for StructValue
Source§impl PartialOrd for StructValue
impl PartialOrd for StructValue
Source§impl<'a_, C_: Context> Readable<'a_, C_> for StructValue
impl<'a_, C_: Context> Readable<'a_, C_> for StructValue
fn read_from<R_: Reader<'a_, C_>>(_reader_: &mut R_) -> Result<Self, C_::Error>
fn minimum_bytes_needed() -> usize
Source§fn read_from_buffer(buffer: &'a [u8]) -> Result<Self, <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
fn read_from_buffer(buffer: &'a [u8]) -> Result<Self, <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
Deserializes from a given buffer. Read more
Source§fn read_with_length_from_buffer(
buffer: &'a [u8],
) -> (Result<Self, <C as Context>::Error>, usize)where
Self: DefaultContext<Context = C>,
C: Default,
fn read_with_length_from_buffer(
buffer: &'a [u8],
) -> (Result<Self, <C as Context>::Error>, usize)where
Self: DefaultContext<Context = C>,
C: Default,
Deserializes from a given buffer while also returning the amount of bytes consumed. Read more
Source§fn read_from_buffer_copying_data(
buffer: &[u8],
) -> Result<Self, <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
fn read_from_buffer_copying_data(
buffer: &[u8],
) -> Result<Self, <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
Deserializes from a given buffer. Read more
Source§fn read_with_length_from_buffer_copying_data(
buffer: &[u8],
) -> (Result<Self, <C as Context>::Error>, usize)where
Self: DefaultContext<Context = C>,
C: Default,
fn read_with_length_from_buffer_copying_data(
buffer: &[u8],
) -> (Result<Self, <C as Context>::Error>, usize)where
Self: DefaultContext<Context = C>,
C: Default,
Deserializes from a given buffer while also returning the amount of bytes consumed. Read more
Source§fn read_from_stream_unbuffered(
stream: impl Read,
) -> Result<Self, <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
fn read_from_stream_unbuffered(
stream: impl Read,
) -> Result<Self, <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
Reads from a given stream without any buffering. Read more
Source§fn read_from_stream_buffered(
stream: impl Read,
) -> Result<Self, <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
fn read_from_stream_buffered(
stream: impl Read,
) -> Result<Self, <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
Reads from a given stream with internal buffering. Read more
fn read_from_file(path: impl AsRef<Path>) -> Result<Self, <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
fn read_from_buffer_with_ctx( context: C, buffer: &'a [u8], ) -> Result<Self, <C as Context>::Error>
fn read_with_length_from_buffer_with_ctx( context: C, buffer: &'a [u8], ) -> (Result<Self, <C as Context>::Error>, usize)
fn read_from_buffer_copying_data_with_ctx( context: C, buffer: &[u8], ) -> Result<Self, <C as Context>::Error>
fn read_with_length_from_buffer_copying_data_with_ctx( context: C, buffer: &[u8], ) -> (Result<Self, <C as Context>::Error>, usize)
fn read_with_length_from_buffer_copying_data_with_ctx_mut( context: &mut C, buffer: &[u8], ) -> (Result<Self, <C as Context>::Error>, usize)
fn read_from_stream_unbuffered_with_ctx<S>(
context: C,
stream: S,
) -> Result<Self, <C as Context>::Error>where
S: Read,
fn read_from_stream_buffered_with_ctx<S>(
context: C,
stream: S,
) -> Result<Self, <C as Context>::Error>where
S: Read,
fn read_from_file_with_ctx( context: C, path: impl AsRef<Path>, ) -> Result<Self, <C as Context>::Error>
Source§impl Reflect for StructValue
impl Reflect for StructValue
fn type_descriptor(&self) -> Cow<'static, TypeDescriptor>
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn as_reflect(&self) -> &dyn Reflect
fn as_reflect_mut(&mut self) -> &mut dyn Reflect
fn patch(&mut self, value: &dyn Reflect)
fn to_value(&self) -> Value
fn clone_reflect(&self) -> Box<dyn Reflect>
fn debug(&self, f: &mut Formatter<'_>) -> Result
fn reflect_owned(self: Box<Self>) -> ReflectOwned
fn reflect_ref(&self) -> ReflectRef<'_>
fn reflect_mut(&mut self) -> ReflectMut<'_>
fn type_id(&self) -> TypeId
fn type_name(&self) -> &str
fn into_tuple(self: Box<Self>) -> Option<Box<dyn Tuple>>
fn as_tuple(&self) -> Option<&dyn Tuple>
fn as_tuple_mut(&mut self) -> Option<&mut dyn Tuple>
fn into_struct(self: Box<Self>) -> Option<Box<dyn Struct>>
fn as_struct(&self) -> Option<&dyn Struct>
fn as_struct_mut(&mut self) -> Option<&mut dyn Struct>
fn into_tuple_struct(self: Box<Self>) -> Option<Box<dyn TupleStruct>>
fn as_tuple_struct(&self) -> Option<&dyn TupleStruct>
fn as_tuple_struct_mut(&mut self) -> Option<&mut dyn TupleStruct>
fn into_enum(self: Box<Self>) -> Option<Box<dyn Enum>>
fn as_enum(&self) -> Option<&dyn Enum>
fn as_enum_mut(&mut self) -> Option<&mut dyn Enum>
fn into_list(self: Box<Self>) -> Option<Box<dyn List>>
fn as_list(&self) -> Option<&dyn List>
fn as_list_mut(&mut self) -> Option<&mut dyn List>
fn into_array(self: Box<Self>) -> Option<Box<dyn Array>>
fn as_array(&self) -> Option<&dyn Array>
fn as_array_mut(&mut self) -> Option<&mut dyn Array>
fn into_map(self: Box<Self>) -> Option<Box<dyn Map>>
fn as_map(&self) -> Option<&dyn Map>
fn as_map_mut(&mut self) -> Option<&mut dyn Map>
fn into_scalar(self: Box<Self>) -> Option<ScalarOwned>
fn as_scalar(&self) -> Option<ScalarRef<'_>>
fn as_scalar_mut(&mut self) -> Option<ScalarMut<'_>>
Source§impl Serialize for StructValue
impl Serialize for StructValue
Source§impl Struct for StructValue
impl Struct for StructValue
fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn fields(&self) -> Iter<'_> ⓘ
fn fields_mut(&mut self) -> PairIterMut<'_>
fn fields_len(&self) -> usize
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
Source§impl<C_: Context> Writable<C_> for StructValue
impl<C_: Context> Writable<C_> for StructValue
fn write_to<T_: ?Sized + Writer<C_>>( &self, _writer_: &mut T_, ) -> Result<(), C_::Error>
fn write_to_buffer(
&self,
buffer: &mut [u8],
) -> Result<(), <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
fn write_to_vec(&self) -> Result<Vec<u8>, <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
fn write_to_stream<S>(&self, stream: S) -> Result<(), <C as Context>::Error>
fn write_to_file(
&self,
path: impl AsRef<Path>,
) -> Result<(), <C as Context>::Error>where
Self: DefaultContext<Context = C>,
C: Default,
fn write_to_buffer_with_ctx( &self, context: C, buffer: &mut [u8], ) -> Result<(), <C as Context>::Error>
fn write_to_buffer_with_ctx_mut( &self, context: &mut C, buffer: &mut [u8], ) -> Result<(), <C as Context>::Error>
fn write_to_vec_with_ctx( &self, context: C, ) -> Result<Vec<u8>, <C as Context>::Error>
fn write_to_vec_with_ctx_mut( &self, context: &mut C, ) -> Result<Vec<u8>, <C as Context>::Error>
fn write_to_stream_with_ctx<S>(
&self,
context: C,
stream: S,
) -> Result<(), <C as Context>::Error>where
S: Write,
fn write_to_file_with_ctx( &self, context: C, path: impl AsRef<Path>, ) -> Result<(), <C as Context>::Error>
fn bytes_needed(&self) -> Result<usize, <C as Context>::Error>
impl Eq for StructValue
impl StructuralPartialEq for StructValue
Auto Trait Implementations§
impl Freeze for StructValue
impl RefUnwindSafe for StructValue
impl Send for StructValue
impl Sync for StructValue
impl Unpin for StructValue
impl UnwindSafe for StructValue
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