pub struct RawSendPropDefinition {
pub prop_type: SendPropType,
pub name: SendPropName,
pub identifier: SendPropIdentifier,
pub flags: SendPropFlags,
pub table_name: Option<SendTableName>,
pub low_value: Option<f32>,
pub high_value: Option<f32>,
pub bit_count: Option<u32>,
pub element_count: Option<u16>,
pub array_property: Option<Box<RawSendPropDefinition>>,
pub original_bit_count: Option<u32>,
}
Fields§
§prop_type: SendPropType
§name: SendPropName
§identifier: SendPropIdentifier
§flags: SendPropFlags
§table_name: Option<SendTableName>
§low_value: Option<f32>
§high_value: Option<f32>
§bit_count: Option<u32>
§element_count: Option<u16>
§array_property: Option<Box<RawSendPropDefinition>>
§original_bit_count: Option<u32>
Implementations§
Source§impl RawSendPropDefinition
impl RawSendPropDefinition
pub fn identifier(&self) -> SendPropIdentifier
pub fn with_array_property(self, array_property: Self) -> Self
Sourcepub fn get_data_table<'a>(
&self,
tables: &'a [ParseSendTable],
) -> Option<&'a ParseSendTable>
pub fn get_data_table<'a>( &self, tables: &'a [ParseSendTable], ) -> Option<&'a ParseSendTable>
Get the referred data table
Note that this is not the owner table
pub fn read( stream: &mut Stream<'_>, owner_table: &SendTableName, ) -> ReadResult<Self>
pub fn is_exclude(&self) -> bool
pub fn get_exclude_table(&self) -> Option<&SendTableName>
Trait Implementations§
Source§impl BitWrite<LittleEndian> for RawSendPropDefinition
impl BitWrite<LittleEndian> for RawSendPropDefinition
Source§fn write(&self, stream: &mut BitWriteStream<'_, LittleEndian>) -> ReadResult<()>
fn write(&self, stream: &mut BitWriteStream<'_, LittleEndian>) -> ReadResult<()>
Write the type to stream
Source§impl Clone for RawSendPropDefinition
impl Clone for RawSendPropDefinition
Source§fn clone(&self) -> RawSendPropDefinition
fn clone(&self) -> RawSendPropDefinition
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 RawSendPropDefinition
impl Debug for RawSendPropDefinition
Source§impl<'de> Deserialize<'de> for RawSendPropDefinition
impl<'de> Deserialize<'de> for RawSendPropDefinition
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 RawSendPropDefinition
impl Display for RawSendPropDefinition
Source§impl PartialEq for RawSendPropDefinition
impl PartialEq for RawSendPropDefinition
Source§impl Serialize for RawSendPropDefinition
impl Serialize for RawSendPropDefinition
Source§impl TryFrom<&RawSendPropDefinition> for SendPropDefinition
impl TryFrom<&RawSendPropDefinition> for SendPropDefinition
Source§type Error = MalformedSendPropDefinitionError
type Error = MalformedSendPropDefinitionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&RawSendPropDefinition> for SendPropParseDefinition
impl TryFrom<&RawSendPropDefinition> for SendPropParseDefinition
Source§type Error = MalformedSendPropDefinitionError
type Error = MalformedSendPropDefinitionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RawSendPropDefinition
impl RefUnwindSafe for RawSendPropDefinition
impl Send for RawSendPropDefinition
impl Sync for RawSendPropDefinition
impl Unpin for RawSendPropDefinition
impl UnwindSafe for RawSendPropDefinition
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> Encode for Twhere
T: BitWrite<LittleEndian>,
impl<T> Encode for Twhere
T: BitWrite<LittleEndian>,
fn encode( &self, stream: &mut BitWriteStream<'_, LittleEndian>, _state: &ParserState, ) -> Result<(), ParseError>
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