[−][src]Struct rendy_chain::Family
Instances of this type contains array of Queue
s.
All contained queues has identical capabilities.
Methods
impl<S> Family<S>
[src]
pub fn new(id: QueueFamilyId) -> Self
[src]
Create new empty Family
pub fn id(&self) -> QueueFamilyId
[src]
Get id of the family.
pub fn queue(&self, qid: QueueId) -> Option<&Queue<S>>
[src]
Get reference to Queue
instance by the id.
Panic
This function will panic if requested queue isn't part of this family.
pub fn queue_mut(&mut self, qid: QueueId) -> Option<&mut Queue<S>>
[src]
Get mutable reference to Queue
instance by the id.
Panic
This function will panic if requested queue isn't part of this family.
pub fn ensure_queue(&mut self, qid: QueueId) -> &mut Queue<S>
[src]
Get mutable reference to Queue
instance by the id.
This function will grow queues array if index is out of bounds.
Panic
This function will panic if requested queue isn't part of this family.
pub fn submission(&self, sid: SubmissionId) -> Option<&Submission<S>>
[src]
Get reference to Submission<S>
instance by id.
Panic
This function will panic if requested submission isn't part of this family.
pub fn submission_mut(
&mut self,
sid: SubmissionId
) -> Option<&mut Submission<S>>
[src]
&mut self,
sid: SubmissionId
) -> Option<&mut Submission<S>>
Get mutable reference to Submission<S>
instance by id.
Panic
This function will panic if requested submission isn't part of this family.
pub fn iter(
&self
) -> impl Iterator<Item = &Queue<S>>
[src]
&self
) -> impl Iterator<Item = &Queue<S>>
Iterate over queues.
pub fn iter_mut(
&mut self
) -> impl Iterator<Item = &mut Queue<S>>
[src]
&mut self
) -> impl Iterator<Item = &mut Queue<S>>
Iterate over queues.
pub fn queue_count(&self) -> usize
[src]
The number of queues in this schedule.
Trait Implementations
impl<S: Clone> Clone for Family<S>
[src]
fn clone(&self) -> Family<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for Family<S>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,