#[repr(u8)]pub enum FieldType {
Long = 0,
String = 1,
Float = 2,
UnsignedLong = 3,
Short = 4,
Char = 5,
StringOffset = 6,
}Expand description
Data types supported by BCSV format
Variants§
Long = 0
Signed 32-bit integer - (4 bytes)
String = 1
Inline string - (32 bytes fixed). Deprecated
Float = 2
32-bit floating point (4 bytes)
UnsignedLong = 3
Unsigned 32-bit integer (4 bytes)
Short = 4
Signed 16-bit integer (2 bytes)
Char = 5
Signed 8-bit integer (1 byte)
StringOffset = 6
String stored in string table (4 byte offset)
Implementations§
Source§impl FieldType
impl FieldType
Sourcepub const fn default_mask(&self) -> u32
pub const fn default_mask(&self) -> u32
Default bitmask for this field type
Sourcepub fn from_csv_name(name: &str) -> Option<Self>
pub fn from_csv_name(name: &str) -> Option<Self>
Parse field type from CSV name
Trait Implementations§
impl Copy for FieldType
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnwindSafe for FieldType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.