Struct spirv_utils::desc::Id [] [src]

pub struct Id(pub u32);

Methods

impl Id
[src]

fn is_valid(self) -> bool

fn to_type_id(self) -> TypeId

fn to_value_id(self) -> ValueId

fn to_result_id(self) -> ResultId

Trait Implementations

impl Hash for Id
[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 Eq for Id
[src]

impl PartialEq for Id
[src]

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

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

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

This method tests for !=.

impl Clone for Id
[src]

fn clone(&self) -> Id

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 Id
[src]

impl From<TypeId> for Id
[src]

fn from(t: TypeId) -> Id

Performs the conversion.

impl From<ValueId> for Id
[src]

fn from(t: ValueId) -> Id

Performs the conversion.

impl From<ResultId> for Id
[src]

fn from(t: ResultId) -> Id

Performs the conversion.

impl Debug for Id
[src]

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

Formats the value using the given formatter.