[][src]Struct glin::SharedBuffer

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

Wrapper around a Buffer with internal reference counting

Useful for example when the same buffer or ranges of the same buffer are to be used in different VAOs

Methods

impl<T: 'static> SharedBuffer<T>
[src]

Get a mutable range from the buffer

Useful to do operations on portions of the buffer

Panics if the range is out of bounds

impl SharedBuffer<u8>
[src]

Trait Implementations

impl<T: 'static> TypedBuffer<T> for SharedBuffer<T>
[src]

Total bytes on the last update

Total capcacity of the buffer in bytes

Stride of the buffer type

impl<'a, T: 'static, '_> TypedBuffer<T> for &'_ SharedBuffer<T>
[src]

Total bytes on the last update

Total capcacity of the buffer in bytes

Stride of the buffer type

impl<'a, T: 'static> TypedBufferMut<T> for SharedBuffer<T>
[src]

impl<T: 'static> Cast<T> for SharedBuffer<u8>
[src]

impl<T: 'static> BufferRange<T> for SharedBuffer<T>
[src]

impl<'a, T: 'static, '_> BufferRange<T> for &'_ SharedBuffer<T>
[src]

impl<T: 'static> BufferRangeMut<T> for SharedBuffer<T>
[src]

impl<T> WithBackend for SharedBuffer<T>
[src]

impl<T> WithBackendMut for SharedBuffer<T>
[src]

impl<T> MapRange<T> for SharedBuffer<T>
[src]

impl<T> MapRangeMut<T> for SharedBuffer<T>
[src]

impl<T: PartialEq> PartialEq<SharedBuffer<T>> for SharedBuffer<T>
[src]

impl<T: 'static> From<Buffer<T>> for SharedBuffer<T>
[src]

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

Performs copy-assignment from source. Read more

impl<T: Eq> Eq for SharedBuffer<T>
[src]

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

Auto Trait Implementations

impl<T> !Send for SharedBuffer<T>

impl<T> !Sync for SharedBuffer<T>

Blanket Implementations

impl<'a, B> AttributeBufferBinding for B where
    B: BufferRange<u32> + ?Sized
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.