pub struct Layer<'l, V> { /* private fields */ }
Expand description

The frame layer. Can be created from a Frame instance.

Implementations

Binds a instance.

Errors

Returns Error::ResourceNotFound if given instance handler was deleted.

Binds a view.

Errors

Returns Error::ResourceNotFound if given view handler was deleted.

Draws a mesh.

Errors

Returns Error::ResourceNotFound if given mesh handler was deleted. Returns Error::InstanceNotSet if no any instance is set. Call bind_instance to set an instance.

Binds a texture.

Errors

Returns Error::ResourceNotFound if given texture handler was deleted.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.