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]
impl<T, B, BB> Range<T, B, BB> where
T: 'static,
BB: Borrow<B>,
[src]impl<T, B, BB> Range<T, B, BB> where
B: TypedBuffer<T>,
T: 'static,
BB: Borrow<B>,
[src]
impl<T, B, BB> Range<T, B, BB> where
B: TypedBuffer<T>,
T: 'static,
BB: Borrow<B>,
[src]impl<T, B, BB> Range<T, B, BB> where
T: 'static,
BB: Borrow<B> + Clone,
[src]
impl<T, B, BB> Range<T, B, BB> where
T: 'static,
BB: Borrow<B> + Clone,
[src]impl<T, B, BB> Range<T, B, BB> where
B: TypedBuffer<T>,
T: 'static,
BB: Borrow<B>,
[src]
impl<T, B, BB> Range<T, B, BB> where
B: TypedBuffer<T>,
T: 'static,
BB: Borrow<B>,
[src]impl<T, B, BB> Range<T, B, BB> where
B: WithMapRange<T>,
T: 'static,
BB: Borrow<B>,
[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]
F: FnMut(&[T]),
impl<T, B, BB> Range<T, B, BB> where
B: MapRange<T>,
T: 'static,
BB: BorrowMut<B>,
[src]
impl<T, B, BB> Range<T, B, BB> where
B: MapRange<T>,
T: 'static,
BB: BorrowMut<B>,
[src]impl<T, B, BB> Range<T, B, BB> where
B: MapRangeMut<T>,
T: 'static,
BB: BorrowMut<B>,
[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]
&mut self,
flags: MapWriteFlags
) -> Result<MapWrite<'_, T, B>, Error>
pub fn map_read_write(
&mut self,
flags: MapReadWriteFlags
) -> Result<MapReadWrite<'_, T, B>, Error>
[src]
&mut self,
flags: MapReadWriteFlags
) -> Result<MapReadWrite<'_, T, B>, Error>
impl<T, B, BB> Range<T, B, BB> where
B: WithMapRangeMut<T>,
T: 'static,
BB: BorrowMut<B>,
[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]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
pub fn with_map_read_write<F>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
impl<T, B, BB> Range<T, B, BB> where
B: TypedBuffer<T> + WithBackend + WithMapRange<T>,
T: 'static,
BB: Borrow<B> + Clone,
[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]
R: InputRange,
impl<T, B, BB> Range<T, B, BB> where
B: TypedBuffer<T> + WithBackend,
T: 'static,
BB: Borrow<B>,
[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]
BR: BufferRange<U> + WithBackendMut,
impl<T, B, BB> Range<T, B, BB> where
B: BufferRangeMut<T> + WithBackendMut,
T: 'static,
BB: BorrowMut<B>,
[src]
impl<T, B, BB> Range<T, B, BB> where
B: BufferRangeMut<T> + WithBackendMut,
T: 'static,
BB: BorrowMut<B>,
[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> 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, 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, 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> 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]pub fn map_persistent_read(
&self,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &Range<T, B, BB>>, Error>
[src]
&self,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &Range<T, B, BB>>, Error>
pub fn into_map_persistent_read(
self,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, Range<T, B, BB>>, Error> where
Range<T, B, BB>: Sized,
[src]
self,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, Range<T, B, BB>>, Error> where
Range<T, B, BB>: Sized,
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> 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]pub fn map_persistent_write(
&self,
flags: MapWriteFlags
) -> Result<MapPersistentWrite<T, &Range<T, B, BB>>, Error>
[src]
&self,
flags: MapWriteFlags
) -> Result<MapPersistentWrite<T, &Range<T, B, BB>>, Error>
pub fn map_persistent_read_write(
&self,
flags: MapReadWriteFlags
) -> Result<MapPersistentReadWrite<T, &Range<T, B, BB>>, Error>
[src]
&self,
flags: MapReadWriteFlags
) -> Result<MapPersistentReadWrite<T, &Range<T, B, BB>>, Error>
pub fn into_map_persistent_write(
self,
flags: MapWriteFlags
) -> Result<MapPersistentWrite<T, Range<T, B, BB>>, Error>
[src]
self,
flags: MapWriteFlags
) -> Result<MapPersistentWrite<T, Range<T, B, BB>>, Error>
pub fn into_map_persistent_read_write(
self,
flags: MapReadWriteFlags
) -> Result<MapPersistentReadWrite<T, Range<T, B, BB>>, Error>
[src]
self,
flags: MapReadWriteFlags
) -> Result<MapPersistentReadWrite<T, Range<T, B, BB>>, Error>
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> 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<T, B, BB> TypedBuffer<T> for Range<T, B, BB> where
B: TypedBuffer<T> + WithMapRange<T> + WithBackend,
T: 'static,
BB: Borrow<B>,
[src]pub fn id(&self) -> u32
[src]
pub fn len(&self) -> usize
[src]
pub fn capacity(&self) -> usize
[src]
pub fn with_map_read<F>(&self, flags: MapReadFlags, f: F) -> Result<(), Error> where
F: FnMut(&[T]),
[src]
F: FnMut(&[T]),
pub fn copy_to<U, BR>(&self, dst: &mut BR) where
BR: BufferRange<U> + WithBackendMut,
[src]
BR: BufferRange<U> + WithBackendMut,
pub unsafe fn unmap(&self)
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn bytes(&self) -> usize
[src]
pub fn capacity_bytes(&self) -> usize
[src]
pub fn stride(&self) -> usize
[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<'a, T, B, BB> TypedBufferMut<T> for Range<T, B, BB> where
B: TypedBuffer<T> + WithMapRangeMut<T> + WithBackend,
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]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
pub fn with_map_read_write<F>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
impl<T, B, BB> WithBackend for Range<T, B, BB> where
B: WithBackend,
BB: Borrow<B>,
[src]
impl<T, B, BB> WithBackend for Range<T, B, BB> where
B: WithBackend,
BB: Borrow<B>,
[src]pub fn with_backend<F, R>(&self, f: F) -> R where
F: FnMut(&dyn Backend) -> R,
[src]
F: FnMut(&dyn Backend) -> R,
impl<T, B, BB> WithBackendMut for Range<T, B, BB> where
B: WithBackendMut,
BB: BorrowMut<B>,
[src]
impl<T, B, BB> WithBackendMut for Range<T, B, BB> where
B: WithBackendMut,
BB: BorrowMut<B>,
[src]pub fn with_backend_mut<F, R>(&mut self, f: F) -> R where
F: FnMut(&mut dyn Backend) -> R,
[src]
F: FnMut(&mut dyn Backend) -> R,
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> WithMapRange<T> for Range<T, B, BB> where
B: WithMapRange<T>,
T: 'static,
BB: Borrow<B>,
[src]pub fn with_map_range_read<F>(
&self,
offset: usize,
length: usize,
flags: MapReadFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&[T]),
[src]
&self,
offset: usize,
length: usize,
flags: MapReadFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&[T]),
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> WithMapRangeMut<T> for Range<T, B, BB> where
B: WithMapRangeMut<T>,
T: 'static,
BB: BorrowMut<B>,
[src]pub unsafe fn with_map_range_write<F>(
&mut self,
offset: usize,
length: usize,
flags: MapWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
[src]
&mut self,
offset: usize,
length: usize,
flags: MapWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
pub fn with_map_range_read_write<F>(
&mut self,
offset: usize,
length: usize,
flags: MapReadWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
[src]
&mut self,
offset: usize,
length: usize,
flags: MapReadWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
impl<T, B, BB> Eq for Range<T, B, BB> where
B: Eq,
T: Eq,
BB: Eq,
[src]
B: Eq,
T: Eq,
BB: Eq,
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: &Vao,
gl: &mut State<'_>,
capabilities: &Capabilities
)
[src]
&self,
vao: &Vao,
gl: &mut State<'_>,
capabilities: &Capabilities
)
pub fn disable_for(
&self,
vao: &Vao,
gl: &mut State<'_>,
capabilities: &Capabilities
)
[src]
&self,
vao: &Vao,
gl: &mut State<'_>,
capabilities: &Capabilities
)
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T, M> MapRange<T> for M where
M: WithMapRange<T>,
[src]
M: WithMapRange<T>,