[−][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.
Methods
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]
fn clone(&self) -> Chain<R>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<R: Debug + Resource> Debug for Chain<R>
[src]
Auto Trait Implementations
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> 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> 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> 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,
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,
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,