pub enum FormatTable {
Channel,
V2017,
V2019,
}Expand description
The three tables, as get_channel_dtype picks one by version.
Variants§
Channel
VertexChannelFormat: a major below 2017.
V2017
VertexFormat2017: a major of 2017 or 2018.
V2019
VertexFormat: a major of 2019 or more.
Implementations§
Source§impl FormatTable
impl FormatTable
Sourcepub const fn for_major(major: u16) -> Self
pub const fn for_major(major: u16) -> Self
The table a version’s major reads (helpers/MeshHelper.py:452-460).
Sourcepub const fn python_name(self) -> &'static str
pub const fn python_name(self) -> &'static str
The enum’s name, as its ValueError gives it.
Sourcepub fn norm(self, format: u8) -> Option<Norm>
pub fn norm(self, format: u8) -> Option<Norm>
The rule unityrs normalises format of this table by, if any
(module docs): None for a format the enum lacks, too.
Sourcepub fn struct_code(self, format: u8) -> Option<StructCode>
pub fn struct_code(self, format: u8) -> Option<StructCode>
The struct code of format in this table, if the enum has it.
Trait Implementations§
Source§impl Clone for FormatTable
impl Clone for FormatTable
impl Copy for FormatTable
Source§impl Debug for FormatTable
impl Debug for FormatTable
impl Eq for FormatTable
Source§impl Hash for FormatTable
impl Hash for FormatTable
Source§impl PartialEq for FormatTable
impl PartialEq for FormatTable
impl StructuralPartialEq for FormatTable
Auto Trait Implementations§
impl Forget for FormatTable
impl Freeze for FormatTable
impl Move for FormatTable
impl RefUnwindSafe for FormatTable
impl Send for FormatTable
impl Sync for FormatTable
impl Unpin for FormatTable
impl UnsafeUnpin for FormatTable
impl UnwindSafe for FormatTable
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