pub struct TupleStructValue { /* private fields */ }
Implementations§
Source§impl TupleStructValue
impl TupleStructValue
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn with_field(self, value: impl Into<Value>) -> Self
pub fn push_field(&mut self, value: impl Into<Value>)
Trait Implementations§
Source§impl Clone for TupleStructValue
impl Clone for TupleStructValue
Source§fn clone(&self) -> TupleStructValue
fn clone(&self) -> TupleStructValue
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 TupleStructValue
impl Debug for TupleStructValue
Source§impl Default for TupleStructValue
impl Default for TupleStructValue
Source§fn default() -> TupleStructValue
fn default() -> TupleStructValue
Returns the “default value” for a type. Read more
Source§impl DescribeType for TupleStructValue
impl DescribeType for TupleStructValue
Source§impl<'de> Deserialize<'de> for TupleStructValue
impl<'de> Deserialize<'de> for TupleStructValue
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<TupleStructValue> for Value
impl From<TupleStructValue> for Value
Source§fn from(value: TupleStructValue) -> Self
fn from(value: TupleStructValue) -> Self
Converts to this type from the input type.
Source§impl<V> FromIterator<V> for TupleStructValuewhere
V: Reflect,
impl<V> FromIterator<V> for TupleStructValuewhere
V: Reflect,
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = V>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = V>,
Creates a value from an iterator. Read more
Source§impl FromReflect for TupleStructValue
impl FromReflect for TupleStructValue
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl Hash for TupleStructValue
impl Hash for TupleStructValue
Source§impl Ord for TupleStructValue
impl Ord for TupleStructValue
Source§fn cmp(&self, other: &TupleStructValue) -> Ordering
fn cmp(&self, other: &TupleStructValue) -> 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 TupleStructValue
impl PartialEq for TupleStructValue
Source§impl PartialOrd for TupleStructValue
impl PartialOrd for TupleStructValue
Source§impl<'a_, C_: Context> Readable<'a_, C_> for TupleStructValue
impl<'a_, C_: Context> Readable<'a_, C_> for TupleStructValue
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 TupleStructValue
impl Reflect for TupleStructValue
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 TupleStructValue
impl Serialize for TupleStructValue
Source§impl TupleStruct for TupleStructValue
impl TupleStruct for TupleStructValue
Source§impl<C_: Context> Writable<C_> for TupleStructValue
impl<C_: Context> Writable<C_> for TupleStructValue
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 TupleStructValue
impl StructuralPartialEq for TupleStructValue
Auto Trait Implementations§
impl Freeze for TupleStructValue
impl RefUnwindSafe for TupleStructValue
impl Send for TupleStructValue
impl Sync for TupleStructValue
impl Unpin for TupleStructValue
impl UnwindSafe for TupleStructValue
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