pub enum PagesType {
Mutable(MutPages),
Immutable(Pages),
Inaccessible(InaccessiblePages),
}
Expand description
Represents the type of pages object. Contains either MutPages
, Pages
, or
InaccessiblePages
. Corresponds to the Accessibility
of the pages.
Variants§
Mutable(MutPages)
Immutable(Pages)
Inaccessible(InaccessiblePages)
This PagesType
contains an InaccessiblePages
object.
Methods from Deref<Target = dyn AnyPages>§
Sourcepub fn downcast_ref<T: AnyPages + 'static>(&self) -> Option<&T>
pub fn downcast_ref<T: AnyPages + 'static>(&self) -> Option<&T>
Downcasts &dyn AnyPages
into &T: AnyPages
Sourcepub fn downcast_mut<T: AnyPages + 'static>(&mut self) -> Option<&mut T>
pub fn downcast_mut<T: AnyPages + 'static>(&mut self) -> Option<&mut T>
Downcasts &mut dyn AnyPages
into &mut T: AnyPages
Trait Implementations§
Source§impl From<InaccessiblePages> for PagesType
impl From<InaccessiblePages> for PagesType
Source§fn from(value: InaccessiblePages) -> PagesType
fn from(value: InaccessiblePages) -> PagesType
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PagesType
impl RefUnwindSafe for PagesType
impl Send for PagesType
impl Sync for PagesType
impl Unpin for PagesType
impl UnwindSafe for PagesType
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