pub enum SendPropValue {
Vector(Vector),
VectorXY(VectorXY),
Integer(i64),
Float(f32),
String(String),
Array(Vec<SendPropValue>),
}
Variants§
Implementations§
Source§impl SendPropValue
impl SendPropValue
pub fn parse( stream: &mut Stream<'_>, definition: &SendPropParseDefinition, ) -> Result<Self>
pub fn encode( &self, stream: &mut BitWriteStream<'_, LittleEndian>, definition: &SendPropParseDefinition, ) -> Result<()>
Trait Implementations§
Source§impl Clone for SendPropValue
impl Clone for SendPropValue
Source§fn clone(&self) -> SendPropValue
fn clone(&self) -> SendPropValue
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 SendPropValue
impl Debug for SendPropValue
Source§impl<'de> Deserialize<'de> for SendPropValue
impl<'de> Deserialize<'de> for SendPropValue
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 Display for SendPropValue
impl Display for SendPropValue
Source§impl From<String> for SendPropValue
impl From<String> for SendPropValue
Source§impl From<Vec<SendPropValue>> for SendPropValue
impl From<Vec<SendPropValue>> for SendPropValue
Source§fn from(value: Vec<SendPropValue>) -> Self
fn from(value: Vec<SendPropValue>) -> Self
Converts to this type from the input type.
Source§impl From<Vector> for SendPropValue
impl From<Vector> for SendPropValue
Source§impl From<VectorXY> for SendPropValue
impl From<VectorXY> for SendPropValue
Source§impl From<f32> for SendPropValue
impl From<f32> for SendPropValue
Source§impl From<i32> for SendPropValue
impl From<i32> for SendPropValue
Source§impl From<i64> for SendPropValue
impl From<i64> for SendPropValue
Source§impl PartialEq for SendPropValue
impl PartialEq for SendPropValue
Source§impl Serialize for SendPropValue
impl Serialize for SendPropValue
Source§impl<'a> TryFrom<&'a SendPropValue> for &'a [SendPropValue]
impl<'a> TryFrom<&'a SendPropValue> for &'a [SendPropValue]
Source§type Error = MalformedSendPropDefinitionError
type Error = MalformedSendPropDefinitionError
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<&'a SendPropValue> for &'a str
impl<'a> TryFrom<&'a SendPropValue> for &'a str
Source§type Error = MalformedSendPropDefinitionError
type Error = MalformedSendPropDefinitionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&SendPropValue> for Vector
impl TryFrom<&SendPropValue> for Vector
Source§type Error = MalformedSendPropDefinitionError
type Error = MalformedSendPropDefinitionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&SendPropValue> for VectorXY
impl TryFrom<&SendPropValue> for VectorXY
Source§type Error = MalformedSendPropDefinitionError
type Error = MalformedSendPropDefinitionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&SendPropValue> for f32
impl TryFrom<&SendPropValue> for f32
Source§type Error = MalformedSendPropDefinitionError
type Error = MalformedSendPropDefinitionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&SendPropValue> for i64
impl TryFrom<&SendPropValue> for i64
Source§type Error = MalformedSendPropDefinitionError
type Error = MalformedSendPropDefinitionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for SendPropValue
impl RefUnwindSafe for SendPropValue
impl Send for SendPropValue
impl Sync for SendPropValue
impl Unpin for SendPropValue
impl UnwindSafe for SendPropValue
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more