Enum tf_demo_parser::demo::sendprop::SendPropValue
source · 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 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 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]
§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
§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
§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
§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
§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
§type Error = MalformedSendPropDefinitionError
type Error = MalformedSendPropDefinitionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
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