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

fn from_string(guid: &str) -> Result<Guid, NulError>

Create a GUID from a string representation.

fn is_zero(&self) -> bool

Return true if GUID is full 0s

fn get_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 Display for Guid

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

Derived Implementations

impl Hash for Guid

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

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

impl PartialEq for Guid

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

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

impl Eq for Guid

impl Clone for Guid

fn clone(&self) -> Guid

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

impl Copy for Guid