Skip to main content

CameraId

Trait CameraId 

pub trait CameraId {
    // Required method
    fn camera_id(&self) -> &str;
}
Expand description

Identifies a camera object: a Camera or the identifier of one.

Lets helpers such as SceneConfig::active_camera take either.

Required Methods§

fn camera_id(&self) -> &str

The identifier of the camera object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl CameraId for String

§

fn camera_id(&self) -> &str

§

impl CameraId for str

§

fn camera_id(&self) -> &str

Implementors§