#[repr(transparent)]pub struct SDL_CameraID(pub Uint32);Expand description
This is a unique ID for a camera device for the time it is connected to the system, and is never reused for the lifetime of the application.
If the device is disconnected and reconnected, it will get a new ID.
The value 0 is an invalid ID.
§Availability
This datatype is available since SDL 3.2.0.
§See also
Tuple Fields§
§0: Uint32Trait Implementations§
Source§impl Clone for SDL_CameraID
impl Clone for SDL_CameraID
Source§fn clone(&self) -> SDL_CameraID
fn clone(&self) -> SDL_CameraID
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_CameraID
impl Debug for SDL_CameraID
Source§impl Default for SDL_CameraID
impl Default for SDL_CameraID
Source§fn default() -> SDL_CameraID
fn default() -> SDL_CameraID
Returns the “default value” for a type. Read more
Source§impl From<SDL_CameraID> for Uint32
impl From<SDL_CameraID> for Uint32
Source§fn from(value: SDL_CameraID) -> Self
fn from(value: SDL_CameraID) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_CameraID
Available on crate feature metadata only.
impl GroupMetadata for SDL_CameraID
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_CameraID
impl Hash for SDL_CameraID
Source§impl Ord for SDL_CameraID
impl Ord for SDL_CameraID
Source§fn cmp(&self, other: &SDL_CameraID) -> Ordering
fn cmp(&self, other: &SDL_CameraID) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_CameraID> for Uint32
impl PartialEq<SDL_CameraID> for Uint32
Source§impl PartialEq<u32> for SDL_CameraID
impl PartialEq<u32> for SDL_CameraID
Source§impl PartialEq for SDL_CameraID
impl PartialEq for SDL_CameraID
Source§impl PartialOrd for SDL_CameraID
impl PartialOrd for SDL_CameraID
impl Copy for SDL_CameraID
impl Eq for SDL_CameraID
impl StructuralPartialEq for SDL_CameraID
Auto Trait Implementations§
impl Freeze for SDL_CameraID
impl RefUnwindSafe for SDL_CameraID
impl Send for SDL_CameraID
impl Sync for SDL_CameraID
impl Unpin for SDL_CameraID
impl UnwindSafe for SDL_CameraID
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