Struct tf_demo_parser::demo::packet::stringtable::StringTable
source · pub struct StringTable<'a> {
pub name: Cow<'a, str>,
pub entries: Vec<(u16, StringTableEntry<'a>)>,
pub max_entries: u16,
pub fixed_user_data_size: Option<FixedUserDataSize>,
pub client_entries: Option<Vec<StringTableEntry<'a>>>,
pub compressed: bool,
}Fields§
§name: Cow<'a, str>§entries: Vec<(u16, StringTableEntry<'a>)>§max_entries: u16§fixed_user_data_size: Option<FixedUserDataSize>§client_entries: Option<Vec<StringTableEntry<'a>>>§compressed: boolImplementations§
source§impl StringTable<'_>
impl StringTable<'_>
pub fn get_table_meta(&self) -> StringTableMeta
Trait Implementations§
source§impl<'a> BitRead<'a, LittleEndian> for StringTable<'a>
impl<'a> BitRead<'a, LittleEndian> for StringTable<'a>
source§fn read(stream: &mut Stream<'a>) -> ReadResult<Self>
fn read(stream: &mut Stream<'a>) -> ReadResult<Self>
Read the type from stream
source§impl BitWrite<LittleEndian> for StringTable<'_>
impl BitWrite<LittleEndian> for StringTable<'_>
source§fn write(&self, stream: &mut BitWriteStream<'_, LittleEndian>) -> ReadResult<()>
fn write(&self, stream: &mut BitWriteStream<'_, LittleEndian>) -> ReadResult<()>
Write the type to stream
source§impl<'a> Clone for StringTable<'a>
impl<'a> Clone for StringTable<'a>
source§fn clone(&self) -> StringTable<'a>
fn clone(&self) -> StringTable<'a>
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<'a> Debug for StringTable<'a>
impl<'a> Debug for StringTable<'a>
source§impl<'de, 'a> Deserialize<'de> for StringTable<'a>where
'a: 'static,
impl<'de, 'a> Deserialize<'de> for StringTable<'a>where
'a: 'static,
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<&StringTable<'_>> for StringTableMeta
impl From<&StringTable<'_>> for StringTableMeta
source§fn from(table: &StringTable<'_>) -> Self
fn from(table: &StringTable<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StringTable<'a>
impl<'a> !Send for StringTable<'a>
impl<'a> !Sync for StringTable<'a>
impl<'a> Unpin for StringTable<'a>
impl<'a> UnwindSafe for StringTable<'a>
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