[−][src]Struct rendy_chain::Chain
This type corresponds to resource category. All resources from the same category must be accessed as permitted by links of the chain.
Implementations
impl<R> Chain<R> where
R: Resource,
[src][−]
R: Resource,
pub fn links(&self) -> &[Link<R>]
[src][−]
Get links slice
pub fn new() -> Self
[src][−]
Create new empty Chain
pub fn last_link_mut(&mut self) -> Option<&mut Link<R>>
[src][−]
Get links slice
pub fn add_link(&mut self, link: Link<R>) -> &mut Link<R>
[src][−]
Add new link to the chain.
pub fn usage(&self) -> R::Usage
[src][−]
Get total usage.
Trait Implementations
impl<R: Clone + Resource> Clone for Chain<R>
[src][+]
impl<R: Debug + Resource> Debug for Chain<R>
[src][+]
Auto Trait Implementations
impl<R> RefUnwindSafe for Chain<R> where
<R as Resource>::Access: RefUnwindSafe,
<R as Resource>::Layout: RefUnwindSafe,
<R as Resource>::Usage: RefUnwindSafe,
<R as Resource>::Access: RefUnwindSafe,
<R as Resource>::Layout: RefUnwindSafe,
<R as Resource>::Usage: RefUnwindSafe,
impl<R> Send for Chain<R> where
<R as Resource>::Access: Send,
<R as Resource>::Layout: Send,
<R as Resource>::Usage: Send,
<R as Resource>::Access: Send,
<R as Resource>::Layout: Send,
<R as Resource>::Usage: Send,
impl<R> Sync for Chain<R> where
<R as Resource>::Access: Sync,
<R as Resource>::Layout: Sync,
<R as Resource>::Usage: Sync,
<R as Resource>::Access: Sync,
<R as Resource>::Layout: Sync,
<R as Resource>::Usage: Sync,
impl<R> Unpin for Chain<R> where
<R as Resource>::Access: Unpin,
<R as Resource>::Layout: Unpin,
<R as Resource>::Usage: Unpin,
<R as Resource>::Access: Unpin,
<R as Resource>::Layout: Unpin,
<R as Resource>::Usage: Unpin,
impl<R> UnwindSafe for Chain<R> where
<R as Resource>::Access: UnwindSafe,
<R as Resource>::Layout: UnwindSafe,
<R as Resource>::Usage: UnwindSafe,
<R as Resource>::Access: UnwindSafe,
<R as Resource>::Layout: UnwindSafe,
<R as Resource>::Usage: UnwindSafe,
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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,