pub enum PreventOverflowConfig {
Enable(bool),
Margin(PreventOverflowMargin),
}
Expand description
Prevent overflow with a margin
Variants§
Enable(bool)
Enable prevent overflow or not
Margin(PreventOverflowMargin)
Enable prevent overflow with a margin so that the window’s size + this margin won’t overflow the workarea
Trait Implementations§
Source§impl Clone for PreventOverflowConfig
impl Clone for PreventOverflowConfig
Source§fn clone(&self) -> PreventOverflowConfig
fn clone(&self) -> PreventOverflowConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PreventOverflowConfig
impl Debug for PreventOverflowConfig
Source§impl<'de> Deserialize<'de> for PreventOverflowConfig
impl<'de> Deserialize<'de> for PreventOverflowConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PreventOverflowConfig
impl PartialEq for PreventOverflowConfig
Source§impl Serialize for PreventOverflowConfig
impl Serialize for PreventOverflowConfig
impl StructuralPartialEq for PreventOverflowConfig
Auto Trait Implementations§
impl Freeze for PreventOverflowConfig
impl RefUnwindSafe for PreventOverflowConfig
impl Send for PreventOverflowConfig
impl Sync for PreventOverflowConfig
impl Unpin for PreventOverflowConfig
impl UnwindSafe for PreventOverflowConfig
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