pub enum BufferSize {
Fixed {
bytes: u64,
},
Recorded {
bytes: u64,
view: [u32; 2],
},
}Expand description
A buffer’s size.
Variants§
Fixed
The same whatever the view.
Recorded
The bytes the source’s recorded frames had, drawn at the view size view (width, height): how the size follows
the view is not established (the light lists of a tiled renderer grow with the number of screen tiles). A
consumer drawing at another size states what it allocates.
Trait Implementations§
Source§impl Clone for BufferSize
impl Clone for BufferSize
impl Copy for BufferSize
Source§impl Debug for BufferSize
impl Debug for BufferSize
impl Eq for BufferSize
Source§impl PartialEq for BufferSize
impl PartialEq for BufferSize
Source§impl Serialize for BufferSize
impl Serialize for BufferSize
impl StructuralPartialEq for BufferSize
Auto Trait Implementations§
impl Forget for BufferSize
impl Freeze for BufferSize
impl RefUnwindSafe for BufferSize
impl Send for BufferSize
impl Sync for BufferSize
impl Unpin for BufferSize
impl UnsafeUnpin for BufferSize
impl UnwindSafe for BufferSize
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.