[−][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]
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]
Iterate over immutable references to families in this schedule.
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Family<S>>
[src]
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
impl<S> Unpin for Schedule<S> where
S: Unpin,
S: Unpin,
impl<S> Sync for Schedule<S> where
S: Sync,
S: Sync,
impl<S> Send for Schedule<S> where
S: Send,
S: Send,
impl<S> UnwindSafe for Schedule<S> where
S: UnwindSafe,
S: UnwindSafe,
impl<S> RefUnwindSafe for Schedule<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,