pub struct Object { /* private fields */ }Implementations§
Source§impl Object
impl Object
pub fn new() -> Result<Self>
pub fn info(&self) -> Result<ObjectInfo>
pub fn kind(&self) -> ObjectKind
pub fn name(&self) -> Option<String>
pub fn set_name(&self, name: &str) -> Result<()>
pub fn path(&self) -> Option<String>
pub fn add_child(&self, child: &Self)
pub fn child_count(&self) -> usize
pub fn child_at(&self, index: usize) -> Option<Self>
pub fn children(&self) -> Vec<Self>
pub fn at_path(&self, path: &str) -> Result<Option<Self>>
pub fn bounding_box_at_time(&self, time: f64) -> BoundingBox
pub fn as_mesh(&self) -> Option<Mesh>
pub fn as_light(&self) -> Option<Light>
pub fn as_physically_plausible_light(&self) -> Option<PhysicallyPlausibleLight>
pub fn as_camera(&self) -> Option<Camera>
pub fn as_voxel_array(&self) -> Option<VoxelArray>
pub fn as_skeleton(&self) -> Option<Skeleton>
pub fn as_packed_joint_animation(&self) -> Option<PackedJointAnimation>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl UnsafeUnpin for Object
impl UnwindSafe for Object
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