Struct rin::gl::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, B, BB> Range<T, B, BB> where
    T: 'static,
    BB: Borrow<B>, 
[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, B, BB> Range<T, B, BB> where
    B: TypedBuffer<T>,
    T: 'static,
    BB: Borrow<B>, 
[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Trait Implementations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<T, B, BB> Eq for Range<T, B, BB> where
    B: Eq,
    T: Eq,
    BB: Eq
[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<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[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<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T, M> MapRange<T> for M where
    M: WithMapRange<T>, 
[src]