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

pub struct Id(pub u32);

Methods

impl Id

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 From<TypeId> for Id

fn from(t: TypeId) -> Id

impl From<ValueId> for Id

fn from(t: ValueId) -> Id

impl From<ResultId> for Id

fn from(t: ResultId) -> Id

impl Debug for Id

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

Derived Implementations

impl Hash for Id

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

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

impl Eq for Id

impl PartialEq for Id

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

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

impl Clone for Id

fn clone(&self) -> Id

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

impl Copy for Id