pub struct PixBytes(pub Arc<[u8]>);Expand description
Newtype wrapper holding an Arc<[u8]> and implementing AsRef<[u8]> so it can be passed to
peniko::Blob::new, which requires Arc<T: ?Sized + AsRef<[u8]> + Send + Sync>.
Tuple Fields§
§0: Arc<[u8]>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PixBytes
impl RefUnwindSafe for PixBytes
impl Send for PixBytes
impl Sync for PixBytes
impl Unpin for PixBytes
impl UnsafeUnpin for PixBytes
impl UnwindSafe for PixBytes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
§impl<S, T> ParallelSlice<T> for S
impl<S, T> ParallelSlice<T> for S
§fn par_chunk_map<F, R>(
&self,
task_pool: &TaskPool,
chunk_size: usize,
f: F,
) -> Vec<R>
fn par_chunk_map<F, R>( &self, task_pool: &TaskPool, chunk_size: usize, f: F, ) -> Vec<R>
Splits the slice in chunks of size
chunks_size or less and maps the chunks
in parallel across the provided task_pool. One task is spawned in the task pool
for every chunk. Read more