Trait rin::gl::buffer::MapPersistentRange [−][src]
pub trait MapPersistentRange<T>: TypedBuffer<T> where
&'a Self: for<'a> TypedBuffer<T>, { pub unsafe fn unsafe_map_range_persistent_read(
&self,
range: Option<Range<usize>>,
flags: MapReadFlags
) -> Result<&'static [T], Error>; pub fn map_range_persistent_read(
&self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &Self>, Error>; pub fn into_map_range_persistent_read(
self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, Self>, Error>; }
Required methods
pub unsafe fn unsafe_map_range_persistent_read(
&self,
range: Option<Range<usize>>,
flags: MapReadFlags
) -> Result<&'static [T], Error>
[src]
&self,
range: Option<Range<usize>>,
flags: MapReadFlags
) -> Result<&'static [T], Error>
pub fn map_range_persistent_read(
&self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &Self>, Error>
[src]
&self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &Self>, Error>
pub fn into_map_range_persistent_read(
self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, Self>, Error>
[src]
self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, Self>, Error>
Implementors
impl<T> MapPersistentRange<T> for BufferStorage<T> where
T: 'static,
[src]
impl<T> MapPersistentRange<T> for BufferStorage<T> where
T: 'static,
[src]pub unsafe fn unsafe_map_range_persistent_read(
&self,
range: Option<Range<usize>>,
flags: MapReadFlags
) -> Result<&'static [T], Error>
[src]
&self,
range: Option<Range<usize>>,
flags: MapReadFlags
) -> Result<&'static [T], Error>
pub fn map_range_persistent_read(
&self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &BufferStorage<T>>, Error>
[src]
&self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &BufferStorage<T>>, Error>
pub fn into_map_range_persistent_read(
self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, BufferStorage<T>>, Error> where
BufferStorage<T>: Sized,
[src]
self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, BufferStorage<T>>, Error> where
BufferStorage<T>: Sized,
impl<T> MapPersistentRange<T> for SharedBufferStorage<T> where
T: 'static,
[src]
impl<T> MapPersistentRange<T> for SharedBufferStorage<T> where
T: 'static,
[src]pub unsafe fn unsafe_map_range_persistent_read(
&self,
range: Option<Range<usize>>,
flags: MapReadFlags
) -> Result<&'static [T], Error>
[src]
&self,
range: Option<Range<usize>>,
flags: MapReadFlags
) -> Result<&'static [T], Error>
pub fn map_range_persistent_read(
&self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &SharedBufferStorage<T>>, Error>
[src]
&self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, &SharedBufferStorage<T>>, Error>
pub fn into_map_range_persistent_read(
self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, SharedBufferStorage<T>>, Error> where
SharedBufferStorage<T>: Sized,
[src]
self,
offset: usize,
length: usize,
flags: MapReadFlags
) -> Result<MapPersistentRead<T, SharedBufferStorage<T>>, Error> where
SharedBufferStorage<T>: Sized,