pub struct BreakpointSpec {
pub name: String,
pub min_width_px: i32,
pub cols: i32,
}Expand description
Describes one responsive breakpoint (usually paired with CSS media queries).
Fields§
§name: String§min_width_px: i32Minimum container width in px for this breakpoint to apply.
cols: i32Trait Implementations§
Source§impl Clone for BreakpointSpec
impl Clone for BreakpointSpec
Source§fn clone(&self) -> BreakpointSpec
fn clone(&self) -> BreakpointSpec
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 BreakpointSpec
impl Debug for BreakpointSpec
Source§impl<'de> Deserialize<'de> for BreakpointSpec
impl<'de> Deserialize<'de> for BreakpointSpec
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 BreakpointSpec
impl PartialEq for BreakpointSpec
Source§impl Serialize for BreakpointSpec
impl Serialize for BreakpointSpec
impl StructuralPartialEq for BreakpointSpec
Auto Trait Implementations§
impl Freeze for BreakpointSpec
impl RefUnwindSafe for BreakpointSpec
impl Send for BreakpointSpec
impl Sync for BreakpointSpec
impl Unpin for BreakpointSpec
impl UnsafeUnpin for BreakpointSpec
impl UnwindSafe for BreakpointSpec
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