[][src]Struct glium::buffer::WriteMapping

pub struct WriteMapping<'b, D: ?Sized> where
    D: Content
{ /* fields omitted */ }

A mapping of a buffer for write only.

Implementations

impl<'b, D> WriteMapping<'b, D> where
    D: Content + Copy
[src]

pub fn write(&mut self, value: D)[src]

Writes the whole content.

impl<'b, D> WriteMapping<'b, [D]> where
    [D]: Content,
    D: Copy
[src]

pub fn len(&self) -> usize[src]

Returns the length of the mapping.

pub fn set(&mut self, index: usize, value: D)[src]

Changes an element of the mapping.

Panic

Panics if out of range.

Auto Trait Implementations

impl<'b, D> !RefUnwindSafe for WriteMapping<'b, D>

impl<'b, D> !Send for WriteMapping<'b, D>

impl<'b, D: ?Sized> Sync for WriteMapping<'b, D> where
    D: Send + Sync

impl<'b, D: ?Sized> Unpin for WriteMapping<'b, D>

impl<'b, D> !UnwindSafe for WriteMapping<'b, D>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.