pub struct LayoutRecipe {
pub kind: AppRecipeKind,
pub viewport: Rect,
pub slots: Vec<LayoutRecipeSlot>,
}Fields§
§kind: AppRecipeKind§viewport: Rect§slots: Vec<LayoutRecipeSlot>Implementations§
Source§impl LayoutRecipe
impl LayoutRecipe
pub fn slot(&self, id: &str) -> Option<&LayoutRecipeSlot>
pub fn slots_by_kind( &self, kind: LayoutRecipeSlotKind, ) -> Vec<&LayoutRecipeSlot>
pub fn content_bounds(&self) -> Rect
pub fn sanitized(self) -> Self
Trait Implementations§
Source§impl Clone for LayoutRecipe
impl Clone for LayoutRecipe
Source§fn clone(&self) -> LayoutRecipe
fn clone(&self) -> LayoutRecipe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayoutRecipe
impl Debug for LayoutRecipe
Source§impl<'de> Deserialize<'de> for LayoutRecipe
impl<'de> Deserialize<'de> for LayoutRecipe
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 LayoutRecipe
impl PartialEq for LayoutRecipe
Source§fn eq(&self, other: &LayoutRecipe) -> bool
fn eq(&self, other: &LayoutRecipe) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LayoutRecipe
impl Serialize for LayoutRecipe
impl StructuralPartialEq for LayoutRecipe
Auto Trait Implementations§
impl Freeze for LayoutRecipe
impl RefUnwindSafe for LayoutRecipe
impl Send for LayoutRecipe
impl Sync for LayoutRecipe
impl Unpin for LayoutRecipe
impl UnsafeUnpin for LayoutRecipe
impl UnwindSafe for LayoutRecipe
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