Struct screen_13::driver::shader::DescriptorBinding
source · pub struct DescriptorBinding(pub u32, pub u32);
Expand description
Tuple of descriptor set index and binding index.
This is a generic representation of the descriptor binding point within the shader and not a bound descriptor reference.
Tuple Fields§
§0: u32
§1: u32
Trait Implementations§
source§impl Clone for DescriptorBinding
impl Clone for DescriptorBinding
source§fn clone(&self) -> DescriptorBinding
fn clone(&self) -> DescriptorBinding
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DescriptorBinding
impl Debug for DescriptorBinding
source§impl Default for DescriptorBinding
impl Default for DescriptorBinding
source§fn default() -> DescriptorBinding
fn default() -> DescriptorBinding
Returns the “default value” for a type. Read more
source§impl From<u32> for DescriptorBinding
impl From<u32> for DescriptorBinding
source§impl Hash for DescriptorBinding
impl Hash for DescriptorBinding
source§impl Ord for DescriptorBinding
impl Ord for DescriptorBinding
source§fn cmp(&self, other: &DescriptorBinding) -> Ordering
fn cmp(&self, other: &DescriptorBinding) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DescriptorBinding
impl PartialEq for DescriptorBinding
source§fn eq(&self, other: &DescriptorBinding) -> bool
fn eq(&self, other: &DescriptorBinding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DescriptorBinding
impl PartialOrd for DescriptorBinding
source§fn partial_cmp(&self, other: &DescriptorBinding) -> Option<Ordering>
fn partial_cmp(&self, other: &DescriptorBinding) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DescriptorBinding
impl Eq for DescriptorBinding
impl StructuralPartialEq for DescriptorBinding
Auto Trait Implementations§
impl RefUnwindSafe for DescriptorBinding
impl Send for DescriptorBinding
impl Sync for DescriptorBinding
impl Unpin for DescriptorBinding
impl UnwindSafe for DescriptorBinding
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.