Enum
ModalStyle
pub enum ModalStyle {
SlideUpDraggablePopup = 0,
SlideUpFixedPopup = 1,
SlideUpFullscreen = 2,
Instant = 3,
}Variants
SlideUpDraggablePopup = 0
A regular modal card that slides up from the bottom of the screen. The user can drag it and dismiss it by dragging or clicking away.
SlideUpFixedPopup = 1
A modal card that slides up from the bottom of the screen. The user can’t drag it and dismiss it by clicking away.
SlideUpFullscreen = 2
A modal card that slides up from the bottom of the screen and takes the entire screen.
Instant = 3
A modal that appears instantly with no animation.
Trait Implementations
impl Archive for ModalStyle
impl Archive for ModalStyle
type Archived = ArchivedModalStyle
type Archived = ArchivedModalStyle
The archived representation of this type. Read more
type Resolver = ModalStyleResolver
type Resolver = ModalStyleResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
fn resolve(
&self,
resolver: <Self as Archive>::Resolver,
out: Place<<Self as Archive>::Archived>,
)
fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )
Creates the archived version of this value at the given position and
writes it to the given output. Read more
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moreimpl Clone for ModalStyle
impl Clone for ModalStyle
fn clone(&self) -> ModalStyle
fn clone(&self) -> ModalStyle
Returns a duplicate of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for ModalStyle
impl Debug for ModalStyle
impl Default for ModalStyle
impl Default for ModalStyle
fn default() -> ModalStyle
fn default() -> ModalStyle
Returns the “default value” for a type. Read more
impl<__D: Fallible + ?Sized> Deserialize<ModalStyle, __D> for Archived<ModalStyle>
impl<__D: Fallible + ?Sized> Deserialize<ModalStyle, __D> for Archived<ModalStyle>
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<ModalStyle, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<ModalStyle, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl FromPrimitive for ModalStyle
impl FromPrimitive for ModalStyle
fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read morefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read morefn from_f32(n: f32) -> Option<Self>
fn from_f32(n: f32) -> Option<Self>
Converts a
f32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.impl<__S: Fallible + ?Sized> Serialize<__S> for ModalStyle
impl<__S: Fallible + ?Sized> Serialize<__S> for ModalStyle
fn serialize(
&self,
serializer: &mut __S,
) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can
create the archived type.