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