pub enum PageEncoding {
Legacy(ArrayEncoding),
Structural(PageLayout),
Planar(PlanarLayout),
}Expand description
A page encoding and the metadata used to execute it.
A file uses the metadata grammar associated with its version: array encodings in 2.0, structural page layouts in 2.1/2.2, and planar page layouts in 2.3.
Variants§
Legacy(ArrayEncoding)
The frozen 2.0 array grammar.
Structural(PageLayout)
Execution metadata decoded from or destined for the stable 2.1/2.2 grammar.
Planar(PlanarLayout)
The unstable 2.3 independent structure and value planes.
Implementations§
Source§impl PageEncoding
impl PageEncoding
pub fn as_legacy(&self) -> &ArrayEncoding
pub fn as_structural(&self) -> &PageLayout
pub fn is_structural(&self) -> bool
Trait Implementations§
Source§impl Clone for PageEncoding
impl Clone for PageEncoding
Source§impl Debug for PageEncoding
impl Debug for PageEncoding
Source§impl DeepSizeOf for PageEncoding
impl DeepSizeOf for PageEncoding
fn deep_size_of_children(&self, _context: &mut Context) -> usize
fn deep_size_of(&self) -> usize
Source§impl From<PageLayout> for PageEncoding
impl From<PageLayout> for PageEncoding
Source§fn from(layout: PageLayout) -> Self
fn from(layout: PageLayout) -> Self
Converts to this type from the input type.
Source§impl From<PageLayout> for PageEncoding
impl From<PageLayout> for PageEncoding
Source§fn from(layout: PageLayout) -> Self
fn from(layout: PageLayout) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for PageEncoding
impl RefUnwindSafe for PageEncoding
impl Send for PageEncoding
impl Sync for PageEncoding
impl Unpin for PageEncoding
impl UnsafeUnpin for PageEncoding
impl UnwindSafe for PageEncoding
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more