pub enum PreviewRole {
Unspecified = 0,
Large = 1,
Small = 2,
Icon = 3,
}Expand description
What a preview is for; a reader picks the best fit for its display.
Variants§
Unspecified = 0
No stated role.
Large = 1
Large preview, recommended 400x300.
Small = 2
Small preview, recommended 200x125.
Icon = 3
Icon, at most 64x64.
Implementations§
Source§impl PreviewRole
impl PreviewRole
Sourcepub fn from_flags(flags: u32) -> Result<PreviewRole>
pub fn from_flags(flags: u32) -> Result<PreviewRole>
Decode the role from a descriptor’s flags.
Trait Implementations§
Source§impl Clone for PreviewRole
impl Clone for PreviewRole
Source§fn clone(&self) -> PreviewRole
fn clone(&self) -> PreviewRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PreviewRole
Source§impl Debug for PreviewRole
impl Debug for PreviewRole
Source§impl Default for PreviewRole
impl Default for PreviewRole
Source§fn default() -> PreviewRole
fn default() -> PreviewRole
Returns the “default value” for a type. Read more
impl Eq for PreviewRole
Source§impl PartialEq for PreviewRole
impl PartialEq for PreviewRole
impl StructuralPartialEq for PreviewRole
Auto Trait Implementations§
impl Freeze for PreviewRole
impl RefUnwindSafe for PreviewRole
impl Send for PreviewRole
impl Sync for PreviewRole
impl Unpin for PreviewRole
impl UnsafeUnpin for PreviewRole
impl UnwindSafe for PreviewRole
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