pub struct Guid { /* private fields */ }
Expand description
Wrapper around a SDL_JoystickGUID
, a globally unique identifier
for a joystick.
Implementations
sourceimpl Guid
impl Guid
sourcepub fn from_string(guid: &str) -> Result<Guid, NulError>
pub fn from_string(guid: &str) -> Result<Guid, NulError>
Create a GUID from a string representation.
sourcepub fn raw(self) -> SDL_JoystickGUID
pub fn raw(self) -> SDL_JoystickGUID
Return a copy of the internal SDL_JoystickGUID
Trait Implementations
impl Copy for Guid
impl Eq for Guid
Auto Trait Implementations
impl RefUnwindSafe for Guid
impl Send for Guid
impl Sync for Guid
impl Unpin for Guid
impl UnwindSafe for Guid
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more