Struct sdl2::joystick::Guid [] [src]

pub struct Guid {
    // some fields omitted
}

Wrapper around a SDL_JoystickGUID, a globally unique identifier for a joystick.

Methods

impl Guid
[src]

fn from_string(guid: &str) -> Result<GuidNulError>

Create a GUID from a string representation.

fn is_zero(&self) -> bool

Return true if GUID is full 0s

fn string(&self) -> String

Return a String representation of GUID

fn raw(self) -> SDL_JoystickGUID

Return a copy of the internal SDL_JoystickGUID

Trait Implementations

impl Hash for Guid
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl PartialEq for Guid
[src]

fn eq(&self, __arg_0: &Guid) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Guid) -> bool

This method tests for !=.

impl Eq for Guid
[src]

impl Clone for Guid
[src]

fn clone(&self) -> Guid

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Guid
[src]

impl Display for Guid
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.