#[non_exhaustive]pub struct Frame {
pub width: Option<f64>,
pub height: Option<f64>,
pub min_width: Option<f64>,
pub min_height: Option<f64>,
pub max_width: Option<Dimension>,
pub max_height: Option<Dimension>,
pub alignment: Option<Alignment>,
}Expand description
Sizes in points. At least one member.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.width: Option<f64>§height: Option<f64>§min_width: Option<f64>§min_height: Option<f64>§max_width: Option<Dimension>§max_height: Option<Dimension>§alignment: Option<Alignment>Implementations§
Source§impl Frame
Builders for each member; lengths are 0 to 1024 points.
impl Frame
Builders for each member; lengths are 0 to 1024 points.
pub fn new() -> Frame
pub fn width(self, points: f64) -> Frame
pub fn height(self, points: f64) -> Frame
pub fn min_width(self, points: f64) -> Frame
pub fn min_height(self, points: f64) -> Frame
Sourcepub fn max_width(self, length: impl Into<Dimension>) -> Frame
pub fn max_width(self, length: impl Into<Dimension>) -> Frame
Points, or Dimension::Infinity to take all the room there is.
pub fn max_height(self, length: impl Into<Dimension>) -> Frame
pub fn alignment(self, alignment: Alignment) -> Frame
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Frame
impl<'de> Deserialize<'de> for Frame
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Frame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Frame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Frame
impl Serialize for Frame
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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