CupsPageFactoryV2

Struct CupsPageFactoryV2 

Source
pub struct CupsPageFactoryV2<TOrder>
where TOrder: ByteOrder,
{ /* private fields */ }

Trait Implementations§

Source§

impl<TOrder> RasterPageFactory for CupsPageFactoryV2<TOrder>
where TOrder: ByteOrder,

Source§

const HEADER_SIZE: usize = 1_796usize

Source§

type Header = CupsPageHeaderV2

Source§

type Error = CupsRasterError

Source§

type Decoder<R> = CompressedRasterDecoder<R> where R: DerefMut<Target: AsyncRead>

Source§

type Encoder<W> = CompressedRasterEncoder<W> where W: DerefMut<Target: AsyncWrite>

Source§

fn header_from_bytes(content: &[u8]) -> Result<Self::Header, Self::Error>

Parse the header from the given bytes, the bytes are guaranteed to be HEADER_SIZE long.
Source§

fn header_to_bytes( target: &mut [u8], header: &Self::Header, ) -> Result<(), Self::Error>

Convert the header to bytes, the bytes will be HEADER_SIZE long.
Source§

fn decode<R>( header: &Self::Header, reader: Pin<R>, limits: &Limits, ) -> Result<Self::Decoder<R>, Self::Error>
where R: DerefMut<Target: AsyncRead>,

Create a new decoder from the given reader, setting the correct parameters based on the header.
Source§

fn encode<W>( header: &Self::Header, writer: Pin<W>, ) -> Result<Self::Encoder<W>, Self::Error>
where W: DerefMut<Target: AsyncWrite>,

Create a new encoder from the given writer, setting the correct parameters based on the header.
Source§

impl WithCupsSyncWord for CupsPageFactoryV2<BigEndian>

Source§

impl WithCupsSyncWord for CupsPageFactoryV2<LittleEndian>

Auto Trait Implementations§

§

impl<TOrder> Freeze for CupsPageFactoryV2<TOrder>

§

impl<TOrder> RefUnwindSafe for CupsPageFactoryV2<TOrder>
where TOrder: RefUnwindSafe,

§

impl<TOrder> Send for CupsPageFactoryV2<TOrder>
where TOrder: Send,

§

impl<TOrder> Sync for CupsPageFactoryV2<TOrder>
where TOrder: Sync,

§

impl<TOrder> Unpin for CupsPageFactoryV2<TOrder>
where TOrder: Unpin,

§

impl<TOrder> UnwindSafe for CupsPageFactoryV2<TOrder>
where TOrder: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.