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]
impl<T: 'static, B, BB: Borrow<B>> Range<T, B, BB>
[src]impl<T: 'static, B: TypedBuffer<T>, BB: Borrow<B>> Range<T, B, BB>
[src]
impl<T: 'static, B: TypedBuffer<T>, BB: Borrow<B>> Range<T, B, BB>
[src]impl<T: 'static, B, BB: Borrow<B> + Clone> Range<T, B, BB>
[src]
impl<T: 'static, B, BB: Borrow<B> + Clone> Range<T, B, BB>
[src]impl<T: 'static, B: TypedBuffer<T>, BB: Borrow<B>> Range<T, B, BB>
[src]
impl<T: 'static, B: TypedBuffer<T>, BB: Borrow<B>> Range<T, B, BB>
[src]impl<T: 'static, B: WithMapRange<T>, BB: Borrow<B>> Range<T, B, BB>
[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]
&self,
flags: MapReadFlags,
f: F
) -> Result<()>
impl<T: 'static, B: MapRange<T>, BB: BorrowMut<B>> Range<T, B, BB>
[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]
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]
&mut self,
flags: MapReadWriteFlags
) -> Result<MapReadWrite<'_, T, B>>
impl<T: 'static, B: WithMapRangeMut<T>, BB: BorrowMut<B>> Range<T, B, BB>
[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]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
pub fn with_map_read_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
impl<T: 'static, B: TypedBuffer<T> + WithBackend + WithMapRange<T>, BB: Borrow<B> + Clone> Range<T, B, BB>
[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]
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]
impl<T: 'static, B: BufferRangeMut<T> + WithBackendMut, BB: BorrowMut<B>> Range<T, B, BB>
[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: 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: 'static, B: BufferRangeMut<T> + WithMapRange<T> + WithBackend + WithBackendMut, BB: BorrowMut<B>> BufferRangeMut<T> 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> 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]fn map_persistent_read(
&self,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &Self>>
[src]
&self,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &Self>>
fn into_map_persistent_read(
self,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, Self>> where
Self: Sized,
[src]
self,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, Self>> where
Self: Sized,
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, 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]fn map_persistent_write(
&self,
flags: MapWriteFlags
) -> Result<MapPersistentWrite<T, &Self>>
[src]
&self,
flags: MapWriteFlags
) -> Result<MapPersistentWrite<T, &Self>>
fn map_persistent_read_write(
&self,
flags: MapReadWriteFlags
) -> Result<MapPersistentReadWrite<T, &Self>>
[src]
&self,
flags: MapReadWriteFlags
) -> Result<MapPersistentReadWrite<T, &Self>>
fn into_map_persistent_write(
self,
flags: MapWriteFlags
) -> Result<MapPersistentWrite<T, Self>>
[src]
self,
flags: MapWriteFlags
) -> Result<MapPersistentWrite<T, Self>>
fn into_map_persistent_read_write(
self,
flags: MapReadWriteFlags
) -> Result<MapPersistentReadWrite<T, Self>>
[src]
self,
flags: MapReadWriteFlags
) -> Result<MapPersistentReadWrite<T, Self>>
impl<T: 'static, B: TypedBuffer<T> + WithMapRange<T> + WithBackend, BB: Borrow<B>> TypedBuffer<T> 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]fn id(&self) -> GLuint
[src]
fn len(&self) -> usize
[src]
fn capacity(&self) -> usize
[src]
fn with_map_read<F: FnMut(&[T])>(&self, flags: MapReadFlags, f: F) -> Result<()>
[src]
fn copy_to<U, BR: BufferRange<U> + WithBackendMut>(&self, dst: &mut BR)
[src]
unsafe fn unmap(&self)
[src]
fn is_empty(&self) -> bool
[src]
fn bytes(&self) -> usize
[src]
fn capacity_bytes(&self) -> usize
[src]
fn stride(&self) -> usize
[src]
impl<'a, T: 'static, B: TypedBuffer<T> + WithMapRangeMut<T> + WithBackend, BB: BorrowMut<B>> TypedBufferMut<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]unsafe fn with_map_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
fn with_map_read_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
impl<T, B: WithBackend, BB: Borrow<B>> WithBackend for Range<T, B, BB>
[src]
impl<T, B: WithBackend, BB: Borrow<B>> WithBackend for Range<T, B, BB>
[src]fn with_backend<F: FnMut(&dyn Backend) -> R, R>(&self, f: F) -> R
[src]
impl<T, B: WithBackendMut, BB: BorrowMut<B>> WithBackendMut for Range<T, B, BB>
[src]
impl<T, B: WithBackendMut, BB: BorrowMut<B>> WithBackendMut for Range<T, B, BB>
[src]fn with_backend_mut<F: FnMut(&mut dyn Backend) -> R, R>(&mut self, f: F) -> R
[src]
impl<T: 'static, B: WithMapRange<T>, BB: Borrow<B>> WithMapRange<T> for Range<T, B, BB>
[src]
impl<T: 'static, B: WithMapRange<T>, BB: Borrow<B>> WithMapRange<T> for Range<T, B, BB>
[src]fn with_map_range_read<F: FnMut(&[T])>(
&self,
offset: usize,
length: usize,
flags: MapReadFlags,
f: F
) -> Result<()>
[src]
&self,
offset: usize,
length: usize,
flags: MapReadFlags,
f: F
) -> Result<()>
impl<T: 'static, B: WithMapRangeMut<T>, BB: BorrowMut<B>> WithMapRangeMut<T> for Range<T, B, BB>
[src]
impl<T: 'static, B: WithMapRangeMut<T>, BB: BorrowMut<B>> WithMapRangeMut<T> for Range<T, B, BB>
[src]unsafe fn with_map_range_write<F: FnMut(&mut [T])>(
&mut self,
offset: usize,
length: usize,
flags: MapWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
offset: usize,
length: usize,
flags: MapWriteFlags,
f: F
) -> Result<()>
fn with_map_range_read_write<F: FnMut(&mut [T])>(
&mut self,
offset: usize,
length: usize,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
offset: usize,
length: usize,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
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,
B: RefUnwindSafe,
BB: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B, BB> Send for Range<T, B, BB> where
B: Send,
BB: Send,
T: Send,
B: Send,
BB: Send,
T: Send,
impl<T, B, BB> Sync for Range<T, B, BB> where
B: Sync,
BB: Sync,
T: Sync,
B: Sync,
BB: Sync,
T: Sync,
impl<T, B, BB> Unpin for Range<T, B, BB> where
B: Unpin,
BB: Unpin,
T: Unpin,
B: Unpin,
BB: Unpin,
T: Unpin,
impl<T, B, BB> UnwindSafe for Range<T, B, BB> where
B: UnwindSafe,
BB: UnwindSafe,
T: UnwindSafe,
B: UnwindSafe,
BB: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<'a, B> AttributeBufferBinding for B where
B: BufferRange<u32> + ?Sized,
[src]
impl<'a, B> AttributeBufferBinding for B where
B: BufferRange<u32> + ?Sized,
[src]pub fn enable_for(&Self, &Vao, &mut State<'_>, &Capabilities)
[src]
pub fn disable_for(&Self, &Vao, &mut State<'_>, &Capabilities)
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]