[−][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> 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,
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 = !
🔬 This is a nightly-only experimental API. (
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
🔬 This is a nightly-only experimental API. (
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,