[−][src]Struct cart_tmp_gdesc::DescriptorCounts
Number of descriptors per type.
Implementations
impl DescriptorCounts
[src]
pub const EMPTY: Self
[src]
Empty descriptor counts.
pub fn add_binding(&mut self, binding: DescriptorSetLayoutBinding)
[src]
Add a single layout binding.
Useful when created with DescriptorCounts::EMPTY
.
pub fn iter(&self) -> impl '_ + Iterator<Item = DescriptorRangeDesc>
[src]
Iterate through counts yelding descriptor types and their amount.
pub fn multiply(&self, value: u32) -> Self
[src]
Multiply all the counts by a value.
Trait Implementations
impl AddAssign<DescriptorCounts> for DescriptorCounts
[src]
fn add_assign(&mut self, rhs: Self)
[src]
impl Clone for DescriptorCounts
[src]
fn clone(&self) -> DescriptorCounts
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DescriptorCounts
[src]
impl Default for DescriptorCounts
[src]
fn default() -> DescriptorCounts
[src]
impl Eq for DescriptorCounts
[src]
impl FromIterator<DescriptorSetLayoutBinding> for DescriptorCounts
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = DescriptorSetLayoutBinding>,
[src]
T: IntoIterator<Item = DescriptorSetLayoutBinding>,
impl Hash for DescriptorCounts
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<DescriptorCounts> for DescriptorCounts
[src]
fn eq(&self, other: &DescriptorCounts) -> bool
[src]
fn ne(&self, other: &DescriptorCounts) -> bool
[src]
impl PartialOrd<DescriptorCounts> for DescriptorCounts
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for DescriptorCounts
[src]
impl StructuralPartialEq for DescriptorCounts
[src]
impl SubAssign<DescriptorCounts> for DescriptorCounts
[src]
fn sub_assign(&mut self, rhs: Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for DescriptorCounts
impl Send for DescriptorCounts
impl Sync for DescriptorCounts
impl Unpin for DescriptorCounts
impl UnwindSafe for DescriptorCounts
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,