pub struct Camera<'a> { /* private fields */ }Expand description
A camera’s projection. A node can reference a camera to apply a transform to place the camera in the scene.
Implementations§
Source§impl<'a> Camera<'a>
impl<'a> Camera<'a>
Sourcepub fn name(&self) -> Option<&'a str>
Available on crate feature names only.
pub fn name(&self) -> Option<&'a str>
names only.Optional user-defined name for this object.
Sourcepub fn projection(&self) -> Projection<'_>
pub fn projection(&self) -> Projection<'_>
Returns the camera’s projection.
Sourcepub fn extensions(&self) -> Option<&Map<String, Value>>
Available on crate feature extensions only.
pub fn extensions(&self) -> Option<&Map<String, Value>>
extensions only.Returns extension data unknown to this crate version.
Sourcepub fn extension_value(&self, ext_name: &str) -> Option<&Value>
Available on crate feature extensions only.
pub fn extension_value(&self, ext_name: &str) -> Option<&Value>
extensions only.Queries extension data unknown to this crate version.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Camera<'a>
impl<'a> RefUnwindSafe for Camera<'a>
impl<'a> Send for Camera<'a>
impl<'a> Sync for Camera<'a>
impl<'a> Unpin for Camera<'a>
impl<'a> UnwindSafe for Camera<'a>
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