pub struct L3dFile { /* private fields */ }Expand description
Main L3D file interface
Implementations§
Source§impl L3dFile
impl L3dFile
Sourcepub fn get_structure_xml(&self) -> String
pub fn get_structure_xml(&self) -> String
Get the raw structure.xml content
Sourcepub fn get_light_emitters(&self) -> Vec<L3dLightEmitter>
pub fn get_light_emitters(&self) -> Vec<L3dLightEmitter>
Get all light emitting objects
Sourcepub fn get_assets(&self) -> Vec<L3dAsset>
pub fn get_assets(&self) -> Vec<L3dAsset>
Get all asset files (OBJ, textures, etc.)
Sourcepub fn get_part_count(&self) -> u64
pub fn get_part_count(&self) -> u64
Get the number of geometry parts
Sourcepub fn get_asset_count(&self) -> u64
pub fn get_asset_count(&self) -> u64
Get the number of asset files
Trait Implementations§
Source§impl<UT> LowerError<UT> for L3dFile
impl<UT> LowerError<UT> for L3dFile
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for L3dFile
impl<UT> LowerReturn<UT> for L3dFile
Source§type ReturnType = <Arc<L3dFile> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<L3dFile> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Auto Trait Implementations§
impl Freeze for L3dFile
impl RefUnwindSafe for L3dFile
impl Send for L3dFile
impl Sync for L3dFile
impl Unpin for L3dFile
impl UnwindSafe for L3dFile
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more