pub enum SearchReveal {
Always,
Scrolls,
OnPull,
}Expand description
How a navigation surface’s search field comes and goes on a phone (docs/search.md). The desktop toolbar field is always there whatever this says.
Variants§
Always
The field is always shown.
Scrolls
The field and the title chrome collapse as the root list scrolls.
OnPull
The field starts hidden and is revealed by pulling down on the list; it collapses on scroll afterwards (iOS owns the reveal/collapse transitions, with a compact title).
Trait Implementations§
Source§impl Clone for SearchReveal
impl Clone for SearchReveal
Source§fn clone(&self) -> SearchReveal
fn clone(&self) -> SearchReveal
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 SearchReveal
Source§impl Debug for SearchReveal
impl Debug for SearchReveal
Source§impl Default for SearchReveal
impl Default for SearchReveal
Source§fn default() -> SearchReveal
fn default() -> SearchReveal
Returns the “default value” for a type. Read more
impl Eq for SearchReveal
Source§impl PartialEq for SearchReveal
impl PartialEq for SearchReveal
impl StructuralPartialEq for SearchReveal
Auto Trait Implementations§
impl Freeze for SearchReveal
impl RefUnwindSafe for SearchReveal
impl Send for SearchReveal
impl Sync for SearchReveal
impl Unpin for SearchReveal
impl UnsafeUnpin for SearchReveal
impl UnwindSafe for SearchReveal
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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