Trait BufferClient

Source
pub trait BufferClient:
    Sized
    + Debug
    + Default
    + Clone {
    // Provided method
    fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error> { ... }
}
Expand description

Trait supported by a BufferData client

A buffer client is created first by a buffer as ‘none’

The data may be created more than once with the same buffer; the client is responsible for deduplication within the render context if required

Provided Methods§

Source

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Format for display; this can be used in indented displays for hierarchies in objects

The trait itself does not require std::fmt::Display as that is not implemented for some simple types (such as ()).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BufferClient for ()

Implementors§