Struct flo_ui::Resource [] [src]

pub struct Resource<T> { /* fields omitted */ }

Represents a resource being managed by the resource manager. Resources are removed from the manager when all copies are dropped.

Methods

impl<T> Resource<T>
[src]

[src]

Retrieves the ID for this resource

[src]

Retrieves the name for this resource, if it has one.

Note that if another resource has been assigned the same name, this might return the old name for a while (use the version in the resource manager if this matters)

[src]

Retrieves an Arc reference of the resource

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Deref for Resource<T>
[src]

The resulting type after dereferencing.

Important traits for &'a mut W
[src]

Dereferences the value.

impl<T> PartialEq for Resource<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<T> Debug for Resource<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl Modifier<Control> for Resource<BindingCanvas>
[src]

[src]

Modify F with self.

impl Modifier<Control> for Resource<Image>
[src]

[src]

Modify F with self.

Auto Trait Implementations

impl<T> Send for Resource<T> where
    T: Send + Sync

impl<T> Sync for Resource<T> where
    T: Send + Sync