Struct warmy::res::Res[][src]

pub struct Res<T>(_);

Shareable resource type.

Resources are wrapped in this type. You cannot do much with an object of this type, despite borrowing immutable or mutably its content.

Methods

impl<T> Res<T>
[src]

Wrap a value in a shareable resource.

Borrow a resource for as long as the return value lives.

Mutably borrow a resource for as long as the return value lives.

Trait Implementations

impl<T: Debug> Debug for Res<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Clone for Res<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> !Send for Res<T>

impl<T> !Sync for Res<T>