[−][src]Struct rendy_chain::Schedule
Whole passes schedule.
Methods
impl<S> Schedule<S>
[src]
pub fn new() -> Self
[src]
Create new empty Schedule
pub fn total(&self) -> usize
[src]
Get total number of submissions.
pub fn ordered(
&self
) -> impl Iterator<Item = &Submission<S>>
[src]
&self
) -> impl Iterator<Item = &Submission<S>>
Iterate over submissions in ordered they must be submitted.
pub fn family_count(&self) -> usize
[src]
The number of families in this schedule.
pub fn queue_count(&self) -> usize
[src]
The number of queues in this schedule.
pub fn iter(
&self
) -> impl Iterator<Item = &Family<S>>
[src]
&self
) -> impl Iterator<Item = &Family<S>>
Iterate over immutable references to families in this schedule.
pub fn iter_mut(
&mut self
) -> impl Iterator<Item = &mut Family<S>>
[src]
&mut self
) -> impl Iterator<Item = &mut Family<S>>
Iterate over mutable references to families in this schedule
pub fn family(&self, fid: QueueFamilyId) -> Option<&Family<S>>
[src]
Get reference to Family
instance by the id.
pub fn family_mut(&mut self, fid: QueueFamilyId) -> Option<&mut Family<S>>
[src]
Get mutable reference to Family
instance by the id.
pub fn queue(&self, qid: QueueId) -> Option<&Queue<S>>
[src]
Get reference to Queue
instance by the id.
pub fn queue_mut(&mut self, qid: QueueId) -> Option<&mut Queue<S>>
[src]
Get mutable reference to Queue
instance by the id.
pub fn submission(&self, sid: SubmissionId) -> Option<&Submission<S>>
[src]
Get reference to Submission
instance by id.
pub fn submission_mut(
&mut self,
sid: SubmissionId
) -> Option<&mut Submission<S>>
[src]
&mut self,
sid: SubmissionId
) -> Option<&mut Submission<S>>
Get reference to Submission
instance by id.
pub fn ensure_family(&mut self, fid: QueueFamilyId) -> &mut Family<S>
[src]
Get mutable reference to Family
instance by the id.
This function will add empty Family
if id is not present.
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.
pub fn build_order(&mut self)
[src]
Make ordered.
Trait Implementations
impl<S: Clone> Clone for Schedule<S>
[src]
fn clone(&self) -> Schedule<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 Schedule<S>
[src]
impl<S> Index<QueueId> for Schedule<S>
[src]
type Output = Queue<S>
The returned type after indexing.
fn index(&self, qid: QueueId) -> &Queue<S>
[src]
impl<S> Index<SubmissionId> for Schedule<S>
[src]
type Output = Submission<S>
The returned type after indexing.
fn index(&self, sid: SubmissionId) -> &Submission<S>
[src]
impl<S> IndexMut<QueueId> for Schedule<S>
[src]
impl<S> IndexMut<SubmissionId> for Schedule<S>
[src]
fn index_mut(&mut self, sid: SubmissionId) -> &mut Submission<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,