pub struct ToastSwipeDirections {
pub allow_left: bool,
pub allow_right: bool,
pub allow_up: bool,
pub allow_down: bool,
}Expand description
Sonner-style swipe direction allowlist (the swipeDirections toaster prop).
This intentionally supports multiple directions at once (e.g. ['top', 'right']).
Fields§
§allow_left: bool§allow_right: bool§allow_up: bool§allow_down: boolImplementations§
Source§impl ToastSwipeDirections
impl ToastSwipeDirections
pub fn from_slice(dirs: &[ToastSwipeDirection]) -> Self
Trait Implementations§
Source§impl Clone for ToastSwipeDirections
impl Clone for ToastSwipeDirections
Source§fn clone(&self) -> ToastSwipeDirections
fn clone(&self) -> ToastSwipeDirections
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToastSwipeDirections
impl Debug for ToastSwipeDirections
Source§impl Default for ToastSwipeDirections
impl Default for ToastSwipeDirections
Source§fn default() -> ToastSwipeDirections
fn default() -> ToastSwipeDirections
Returns the “default value” for a type. Read more
Source§impl PartialEq for ToastSwipeDirections
impl PartialEq for ToastSwipeDirections
impl Copy for ToastSwipeDirections
impl Eq for ToastSwipeDirections
impl StructuralPartialEq for ToastSwipeDirections
Auto Trait Implementations§
impl Freeze for ToastSwipeDirections
impl RefUnwindSafe for ToastSwipeDirections
impl Send for ToastSwipeDirections
impl Sync for ToastSwipeDirections
impl Unpin for ToastSwipeDirections
impl UnsafeUnpin for ToastSwipeDirections
impl UnwindSafe for ToastSwipeDirections
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