[][src]Struct rendy_command::Families

pub struct Families<B: Backend> { /* fields omitted */ }

Collection of queue families of one device.

Methods

impl<B> Families<B> where
    B: Backend, 
[src]

pub fn family(&self, id: FamilyId) -> &Family<B>[src]

Get queue family by id.

pub fn family_by_index(&self, index: usize) -> &Family<B>[src]

Get queue family by index.

pub fn family_mut(&mut self, id: FamilyId) -> &mut Family<B>[src]

Get queue family by id.

pub fn family_by_index_mut(&mut self, index: usize) -> &mut Family<B>[src]

Get queue family by index.

pub fn as_slice(&self) -> &[Family<B>][src]

Get queue families as slice.

pub fn as_slice_mut(&mut self) -> &mut [Family<B>][src]

Get queue families as slice.

pub fn indices(&self) -> &[usize][src]

Get id -> index mapping.

pub fn find<F>(&self, predicate: F) -> Option<FamilyId> where
    F: FnMut(&&Family<B>) -> bool
[src]

Find family id matching predicate

pub fn with_capability<C: Capability>(&self) -> Option<FamilyId>[src]

Get first matching family id with specified capability

Trait Implementations

impl<B: Debug + Backend> Debug for Families<B>[src]

Auto Trait Implementations

impl<B> Send for Families<B> where
    <B as Backend>::CommandQueue: Send

impl<B> Sync for Families<B> where
    <B as Backend>::CommandQueue: Sync

impl<B> Unpin for Families<B> where
    <B as Backend>::CommandQueue: Unpin

impl<B> UnwindSafe for Families<B> where
    <B as Backend>::CommandQueue: UnwindSafe

impl<B> RefUnwindSafe for Families<B> where
    <B as Backend>::CommandQueue: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]