Struct glin::buffer::Range[][src]

pub struct Range<T, B, BB> { /* fields omitted */ }

A view into a portion of a buffer which can be used as a buffer itself

Implementations

impl<T: 'static, B, BB: Borrow<B>> Range<T, B, BB>[src]

pub fn is_empty(&self) -> bool[src]

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

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

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

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

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

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

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

impl<T: 'static, B: TypedBuffer<T>, BB: Borrow<B>> Range<T, B, BB>[src]

pub fn join(self, other: Range<T, B, BB>) -> Result<Self, (Self, Self)>[src]

impl<T: 'static, B, BB: Borrow<B> + Clone> Range<T, B, BB>[src]

pub fn split(self, offset: usize) -> (Range<T, B, BB>, Range<T, B, BB>)[src]

impl<T: 'static, B: TypedBuffer<T>, BB: Borrow<B>> Range<T, B, BB>[src]

pub fn id(&self) -> GLuint[src]

impl<T: 'static, B: WithMapRange<T>, BB: Borrow<B>> Range<T, B, BB>[src]

pub fn with_map_read<F: FnMut(&[T])>(
    &self,
    flags: MapReadFlags,
    f: F
) -> Result<()>
[src]

impl<T: 'static, B: MapRange<T>, BB: BorrowMut<B>> Range<T, B, BB>[src]

pub fn map_read(&mut self, flags: MapReadFlags) -> Result<MapRead<'_, T, B>>[src]

impl<T: 'static, B: MapRangeMut<T>, BB: BorrowMut<B>> Range<T, B, BB>[src]

pub fn map_write(&mut self, flags: MapWriteFlags) -> Result<MapWrite<'_, T, B>>[src]

pub fn map_read_write(
    &mut self,
    flags: MapReadWriteFlags
) -> Result<MapReadWrite<'_, T, B>>
[src]

impl<T: 'static, B: WithMapRangeMut<T>, BB: BorrowMut<B>> Range<T, B, BB>[src]

pub unsafe fn with_map_write<F: FnMut(&mut [T])>(
    &mut self,
    flags: MapWriteFlags,
    f: F
) -> Result<()>
[src]

pub fn with_map_read_write<F: FnMut(&mut [T])>(
    &mut self,
    flags: MapReadWriteFlags,
    f: F
) -> Result<()>
[src]

impl<T: 'static, B: TypedBuffer<T> + WithBackend + WithMapRange<T>, BB: Borrow<B> + Clone> Range<T, B, BB>[src]

pub fn range<R: InputRange>(&self, range: R) -> Range<T, B, BB>[src]

impl<T: 'static, B: TypedBuffer<T> + WithBackend, BB: Borrow<B>> Range<T, B, BB>[src]

pub fn copy_to<U, BR: BufferRange<U> + WithBackendMut>(&self, dst: &mut BR)[src]

impl<T: 'static, B: BufferRangeMut<T> + WithBackendMut, BB: BorrowMut<B>> Range<T, B, BB>[src]

pub fn update(&mut self, data: &[T])[src]

Trait Implementations

impl<T: 'static, B: TypedBuffer<T> + WithMapRange<T> + WithBackend, BB: Borrow<B>> BufferRange<T> for Range<T, B, BB>[src]

impl<T: 'static, B: BufferRangeMut<T> + WithMapRange<T> + WithBackend + WithBackendMut, BB: BorrowMut<B>> BufferRangeMut<T> for Range<T, B, BB>[src]

impl<T, B: Cast<T> + TypedBuffer<u8>> Cast<T> for Range<u8, B, B>[src]

type CastTo = Range<T, <B as Cast<T>>::CastTo, <B as Cast<T>>::CastTo>

impl<T, B, BB: Clone> Clone for Range<T, B, BB>[src]

impl<T: Debug, B: Debug, BB: Debug> Debug for Range<T, B, BB>[src]

impl<T, B, BB> MapPersistent<T> for Range<T, B, BB> where
    T: 'static,
    B: MapPersistentRange<T>,
    BB: Borrow<B>,
    &'a B: TypedBuffer<T>,
    Self: TypedBuffer<T>,
    &'a Self: TypedBuffer<T>, 
[src]

impl<T, B, BB> MapPersistentMut<T> for Range<T, B, BB> where
    T: 'static,
    B: MapPersistentRangeMut<T>,
    BB: Borrow<B>,
    &'a B: TypedBuffer<T>,
    Self: TypedBuffer<T>,
    &'a Self: TypedBuffer<T>, 
[src]

impl<T: PartialEq, B: PartialEq, BB: PartialEq> PartialEq<Range<T, B, BB>> for Range<T, B, BB>[src]

impl<T: 'static, B: TypedBuffer<T> + WithMapRange<T> + WithBackend, BB: Borrow<B>> TypedBuffer<T> for Range<T, B, BB>[src]

impl<'a, T: 'static, B: TypedBuffer<T> + WithMapRangeMut<T> + WithBackend, BB: BorrowMut<B>> TypedBufferMut<T> for Range<T, B, BB>[src]

impl<T, B: WithBackend, BB: Borrow<B>> WithBackend for Range<T, B, BB>[src]

impl<T, B: WithBackendMut, BB: BorrowMut<B>> WithBackendMut for Range<T, B, BB>[src]

impl<T: 'static, B: WithMapRange<T>, BB: Borrow<B>> WithMapRange<T> for Range<T, B, BB>[src]

impl<T: 'static, B: WithMapRangeMut<T>, BB: BorrowMut<B>> WithMapRangeMut<T> for Range<T, B, BB>[src]

impl<T: Eq, B: Eq, BB: Eq> Eq for Range<T, B, BB>[src]

impl<T, B, BB> StructuralEq for Range<T, B, BB>[src]

impl<T, B, BB> StructuralPartialEq for Range<T, B, BB>[src]

Auto Trait Implementations

impl<T, B, BB> RefUnwindSafe for Range<T, B, BB> where
    B: RefUnwindSafe,
    BB: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, B, BB> Send for Range<T, B, BB> where
    B: Send,
    BB: Send,
    T: Send

impl<T, B, BB> Sync for Range<T, B, BB> where
    B: Sync,
    BB: Sync,
    T: Sync

impl<T, B, BB> Unpin for Range<T, B, BB> where
    B: Unpin,
    BB: Unpin,
    T: Unpin

impl<T, B, BB> UnwindSafe for Range<T, B, BB> where
    B: UnwindSafe,
    BB: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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.