[][src]Struct rendy_chain::Chain

pub struct Chain<R: Resource> { /* fields omitted */ }

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]

Get links slice

pub fn new() -> Self[src]

Create new empty Chain

Get links slice

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> Send for Chain<R> where
    <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

impl<R> Unpin for Chain<R> where
    <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

impl<R> RefUnwindSafe for Chain<R> where
    <R as Resource>::Access: RefUnwindSafe,
    <R as Resource>::Layout: RefUnwindSafe,
    <R as Resource>::Usage: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]