pub enum ScrollToTarget {
Descendant(WidgetId),
Rect(Rect),
}Expand description
Target for the SCROLL_TO_CMD.
Variants§
Descendant(WidgetId)
Widget (inner bounds) that will be scrolled into view.
Rect(Rect)
Rectangle in the content space that will be scrolled into view.
Trait Implementations§
Source§impl Clone for ScrollToTarget
impl Clone for ScrollToTarget
Source§fn clone(&self) -> ScrollToTarget
fn clone(&self) -> ScrollToTarget
Returns a duplicate of the value. Read more
1.0.0 · 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 ScrollToTarget
impl Debug for ScrollToTarget
Source§impl From<&'static str> for ScrollToTarget
impl From<&'static str> for ScrollToTarget
Source§impl From<Rect> for ScrollToTarget
impl From<Rect> for ScrollToTarget
Source§impl From<WidgetId> for ScrollToTarget
impl From<WidgetId> for ScrollToTarget
Source§impl IntoVar<ScrollToTarget> for &'static str
impl IntoVar<ScrollToTarget> for &'static str
fn into_var(self) -> Var<ScrollToTarget>
Source§impl IntoVar<ScrollToTarget> for Rect
impl IntoVar<ScrollToTarget> for Rect
fn into_var(self) -> Var<ScrollToTarget>
Source§impl IntoVar<ScrollToTarget> for WidgetId
impl IntoVar<ScrollToTarget> for WidgetId
fn into_var(self) -> Var<ScrollToTarget>
Source§impl PartialEq for ScrollToTarget
impl PartialEq for ScrollToTarget
impl IntoValue<ScrollToTarget> for &'static str
impl IntoValue<ScrollToTarget> for Rect
impl IntoValue<ScrollToTarget> for WidgetId
impl StructuralPartialEq for ScrollToTarget
Auto Trait Implementations§
impl Freeze for ScrollToTarget
impl RefUnwindSafe for ScrollToTarget
impl Send for ScrollToTarget
impl Sync for ScrollToTarget
impl Unpin for ScrollToTarget
impl UnwindSafe for ScrollToTarget
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Clone the value.
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
Gets if
self and other are equal.Source§fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
Swap value with
other if both are of the same type.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,
Source§impl<T> FsChangeNote for T
impl<T> FsChangeNote for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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