pub struct ScaffoldSpec {
pub colors: ScaffoldColors,
pub content_insets: ScaffoldContentInsets,
}Expand description
How a scaffold is configured beyond its slots.
Fields§
§colors: ScaffoldColorsSurfaces painted behind the slots.
content_insets: ScaffoldContentInsetsWhich window insets the scaffold consumes.
Implementations§
Source§impl ScaffoldSpec
impl ScaffoldSpec
Sourcepub fn with_colors(self, colors: ScaffoldColors) -> Self
pub fn with_colors(self, colors: ScaffoldColors) -> Self
Sets the surfaces.
Trait Implementations§
Source§impl Clone for ScaffoldSpec
impl Clone for ScaffoldSpec
Source§fn clone(&self) -> ScaffoldSpec
fn clone(&self) -> ScaffoldSpec
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 moreimpl Copy for ScaffoldSpec
Source§impl Debug for ScaffoldSpec
impl Debug for ScaffoldSpec
Source§impl Default for ScaffoldSpec
impl Default for ScaffoldSpec
Source§fn default() -> ScaffoldSpec
fn default() -> ScaffoldSpec
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScaffoldSpec
impl PartialEq for ScaffoldSpec
impl StructuralPartialEq for ScaffoldSpec
Auto Trait Implementations§
impl Freeze for ScaffoldSpec
impl RefUnwindSafe for ScaffoldSpec
impl Send for ScaffoldSpec
impl Sync for ScaffoldSpec
impl Unpin for ScaffoldSpec
impl UnsafeUnpin for ScaffoldSpec
impl UnwindSafe for ScaffoldSpec
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