pub enum Chrome {
Window(RNode),
Page(RNode),
}Expand description
Which chrome a contribution lands on.
Not a placement; day_spec::ToolbarPlacement says where on a chrome an item sits. This
says which chrome, and it is never written by an app: it follows from the piece that declared
the items, which is what the design is built around (docs/toolbars.md).
Variants§
Window(RNode)
The window’s own chrome, shown on every page of that window.
Page(RNode)
One navigation page’s chrome. Which surface draws it follows from the page’s
day_spec::props::Pane.
Trait Implementations§
impl Copy for Chrome
impl Eq for Chrome
impl StructuralPartialEq for Chrome
Auto Trait Implementations§
impl Freeze for Chrome
impl RefUnwindSafe for Chrome
impl Send for Chrome
impl Sync for Chrome
impl Unpin for Chrome
impl UnsafeUnpin for Chrome
impl UnwindSafe for Chrome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more