Skip to main content

AttrExtractorParseExt

Trait AttrExtractorParseExt 

Source
pub trait AttrExtractorParseExt {
    // Required methods
    fn optional_i32(&self, name: &str) -> Result<Option<i32>, FbxTryFromReason>;
    fn optional_two_f32(
        &self,
        name: &str,
    ) -> Result<Option<[f32; 2]>, FbxTryFromReason>;
    fn optional_two_f32_case_insensitive(
        &self,
        name: &str,
    ) -> Result<Option<[f32; 2]>, FbxTryFromReason>;
    fn optional_four_i32(
        &self,
        name: &str,
    ) -> Result<Option<[i32; 4]>, FbxTryFromReason>;
    fn optional_four_i32_case_insensitive(
        &self,
        name: &str,
    ) -> Result<Option<[i32; 4]>, FbxTryFromReason>;
}
Expand description

Optional parsing of typed token lists on top of AttrExtractor.

Required Methods§

Source

fn optional_i32(&self, name: &str) -> Result<Option<i32>, FbxTryFromReason>

Source

fn optional_two_f32( &self, name: &str, ) -> Result<Option<[f32; 2]>, FbxTryFromReason>

First two value tokens as f32 (e.g. ModelUVTranslation). None if the attribute is absent.

Source

fn optional_two_f32_case_insensitive( &self, name: &str, ) -> Result<Option<[f32; 2]>, FbxTryFromReason>

Source

fn optional_four_i32( &self, name: &str, ) -> Result<Option<[i32; 4]>, FbxTryFromReason>

First four value tokens as i32 (e.g. Cropping). None if the attribute is absent.

Source

fn optional_four_i32_case_insensitive( &self, name: &str, ) -> Result<Option<[i32; 4]>, FbxTryFromReason>

Implementors§