pub struct TupleValue { /* private fields */ }
Implementations§
Source§impl TupleValue
impl TupleValue
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 TupleValue
impl Clone for TupleValue
Source§fn clone(&self) -> TupleValue
fn clone(&self) -> TupleValue
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 TupleValue
impl Debug for TupleValue
Source§impl Default for TupleValue
impl Default for TupleValue
Source§fn default() -> TupleValue
fn default() -> TupleValue
Returns the “default value” for a type. Read more
Source§impl DescribeType for TupleValue
impl DescribeType for TupleValue
Source§impl<'de> Deserialize<'de> for TupleValue
impl<'de> Deserialize<'de> for TupleValue
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<TupleValue> for Value
impl From<TupleValue> for Value
Source§fn from(value: TupleValue) -> Self
fn from(value: TupleValue) -> Self
Converts to this type from the input type.
Source§impl<V> FromIterator<V> for TupleValuewhere
V: Reflect,
impl<V> FromIterator<V> for TupleValuewhere
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 TupleValue
impl FromReflect for TupleValue
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl Hash for TupleValue
impl Hash for TupleValue
Source§impl Ord for TupleValue
impl Ord for TupleValue
Source§fn cmp(&self, other: &TupleValue) -> Ordering
fn cmp(&self, other: &TupleValue) -> 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 TupleValue
impl PartialEq for TupleValue
Source§impl PartialOrd for TupleValue
impl PartialOrd for TupleValue
Source§impl<'a_, C_: Context> Readable<'a_, C_> for TupleValue
impl<'a_, C_: Context> Readable<'a_, C_> for TupleValue
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 TupleValue
impl Reflect for TupleValue
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 TupleValue
impl Serialize for TupleValue
Source§impl Tuple for TupleValue
impl Tuple for TupleValue
Source§impl<C_: Context> Writable<C_> for TupleValue
impl<C_: Context> Writable<C_> for TupleValue
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 TupleValue
impl StructuralPartialEq for TupleValue
Auto Trait Implementations§
impl Freeze for TupleValue
impl RefUnwindSafe for TupleValue
impl Send for TupleValue
impl Sync for TupleValue
impl Unpin for TupleValue
impl UnwindSafe for TupleValue
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