Struct sdl2::joystick::Guid
[−]
[src]
pub struct Guid { /* fields omitted */ }
Wrapper around a SDL_JoystickGUID, a globally unique identifier for a joystick.
Methods
impl Guid
[src]
pub fn from_string(guid: &str) -> Result<Guid, NulError>
[src]
Create a GUID from a string representation.
pub fn is_zero(&self) -> bool
[src]
Return true
if GUID is full 0s
pub fn string(&self) -> String
[src]
Return a String representation of GUID
pub fn raw(self) -> SDL_JoystickGUID
[src]
Return a copy of the internal SDL_JoystickGUID
Trait Implementations
impl Copy for Guid
[src]
impl Clone for Guid
[src]
fn clone(&self) -> Guid
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Guid
[src]
impl PartialEq for Guid
[src]
fn eq(&self, __arg_0: &Guid) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Guid) -> bool
[src]
This method tests for !=
.
impl Hash for Guid
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more