Skip to main content

ScrollPositionWithSingleContext

Struct ScrollPositionWithSingleContext 

Source
pub struct ScrollPositionWithSingleContext { /* private fields */ }
Expand description

A scroll position that manages scroll activities for a single ScrollContext.

This type is a concrete implementor of ScrollPosition logic that handles a single scroll context, such as a Scrollable. An instance of this type manages [ScrollActivity] instances, which change what content is visible in the Scrollable’s Viewport.

It is also the base class _DraggableScrollableSheetScrollPosition and _CupertinoSheetScrollPosition extend: its field is the ScrollPositionWithSingleContextData bag, the members it overrides are ScrollPositionWithSingleContextLeaf’s, and the shared bodies are the associated functions below.

See also:

  • ScrollPosition, which defines the underlying model for a position within a Scrollable but is agnostic as to how that position is changed.
  • ScrollController, which can manipulate one or more ScrollPositions, and which uses ScrollPositionWithSingleContext as its default type for scroll positions.

Implementations§

Source§

impl ScrollPositionWithSingleContext

Source

pub fn new( app: &mut App, physics: ScrollPhysicsRef, context: Rc<dyn ScrollContext>, initial_pixels: Option<f64>, keep_scroll_offset: bool, old_position: Option<AnyScrollPosition>, debug_label: Option<String>, ) -> Ref<ScrollPositionWithSingleContext>

Create a ScrollPosition object that manages its behavior using [ScrollActivity] objects.

The initial_pixels argument can be None, but in that case it is imperative that the value be set, using ScrollPosition::correct_pixels, as soon as ScrollPosition::apply_new_dimensions is invoked, before calling ScrollPositionBase::apply_new_dimensions. Dart’s default is 0.0.

If keep_scroll_offset is true (Dart’s default), the current scroll offset is saved with PageStorage and restored if this scroll position’s scrollable is recreated.

Source

pub fn init<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, initial_pixels: Option<f64>, old_position: Option<AnyScrollPosition>, )

Dart’s ScrollPositionWithSingleContext constructor body, which runs the ScrollPositionBase::init of its superclass first.

A leaf’s constructor calls this right after App::create, where Dart’s superclass constructor would run.

Source

pub fn axis_direction<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &App, ) -> AxisDirection

Source

pub fn set_pixels<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, new_pixels: f64, ) -> f64

Source

pub fn absorb<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, other: AnyScrollPosition, )

Source

pub fn apply_new_dimensions<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, )

Source

pub fn begin_activity<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, new_activity: Option<ScrollActivityRef>, )

Source

pub fn apply_user_offset<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, delta: f64, )

Source

pub fn go_idle<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, )

Source

pub fn go_ballistic<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, velocity: f64, )

Source

pub fn animate_to<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, to: f64, duration: Duration, curve: Rc<dyn Curve>, ) -> CompleterFuture<()> ⓘ

Source

pub fn jump_to<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, value: f64, )

Source

pub fn pointer_scroll<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, delta: f64, )

Source

pub fn jump_to_without_settling<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, value: f64, )

Source

pub fn hold<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, hold_cancel_callback: Listener, ) -> Rc<dyn ScrollHoldController>

Source

pub fn drag<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, details: DragStartDetails, drag_cancel_callback: Listener, ) -> Rc<dyn Drag>

Source

pub fn dispose<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &mut App, )

Source

pub fn debug_fill_description<P: ScrollPositionWithSingleContextLeaf>( this: Handle<P>, app: &App, description: &mut Vec<String>, )

Trait Implementations§

Source§

impl ChangeNotifier for ScrollPositionWithSingleContext

Source§

fn change_notifier_data(&self) -> &ChangeNotifierData

Source§

fn change_notifier_data_mut(&mut self) -> &mut ChangeNotifierData

Source§

fn will_add_listener(self: Handle<Self>, app: &mut App)

Runs before the listener is stored. Dart overrides of addListener that work before super.addListener go here.
Source§

fn did_remove_listener(self: Handle<Self>, app: &mut App)

Runs after the listener is removed. Dart overrides of removeListener that work after super.removeListener go here.
Source§

impl ScrollActivityDelegate for ScrollPositionWithSingleContext

Source§

fn axis_direction(self: Handle<Self>, app: &App) -> AxisDirection

The direction in which the scroll view scrolls.
Source§

fn set_pixels(self: Handle<Self>, app: &mut App, pixels: f64) -> f64

Update the scroll position to the given pixel value. Read more
Source§

fn apply_user_offset(self: Handle<Self>, app: &mut App, delta: f64)

Updates the scroll position by the given amount. Read more
Source§

fn go_idle(self: Handle<Self>, app: &mut App)

Terminate the current activity and start an idle activity.
Source§

fn go_ballistic(self: Handle<Self>, app: &mut App, velocity: f64)

Terminate the current activity and start a ballistic activity with the given velocity.
Source§

fn as_scroll_activity_delegate(self: Handle<Self>) -> AnyScrollActivityDelegate

This delegate as the erased AnyScrollActivityDelegate — what to pass where a Dart API takes a ScrollActivityDelegate.
Source§

impl ScrollPosition for ScrollPositionWithSingleContext

Source§

fn scroll_position_data(self: Handle<Self>, app: &App) -> &ScrollPositionData

Dart’s ScrollPosition fields, held under the field scroll_position (scroll_position_accessors!).
Source§

fn scroll_position_data_mut( self: Handle<Self>, app: &mut App, ) -> &mut ScrollPositionData

Source§

fn axis_direction(self: Handle<Self>, app: &App) -> AxisDirection

The direction in which the scroll view scrolls; Dart’s ScrollMetrics.axisDirection.
Source§

fn set_pixels(self: Handle<Self>, app: &mut App, new_pixels: f64) -> f64

Update the scroll position (pixels) to a given pixel value. Read more
Source§

fn absorb(self: Handle<Self>, app: &mut App, other: AnyScrollPosition)

Take any current applicable state from the given ScrollPosition. Read more
Source§

fn apply_new_dimensions(self: Handle<Self>, app: &mut App)

Notifies the activity that the dimensions of the underlying viewport or contents have changed. Read more
Source§

fn begin_activity( self: Handle<Self>, app: &mut App, new_activity: Option<ScrollActivityRef>, )

Change the current activity, disposing of the old one and sending scroll notifications as necessary. Read more
Source§

fn pointer_scroll(self: Handle<Self>, app: &mut App, delta: f64)

Changes the scrolling position based on a pointer signal from current value to delta without animation and without checking if new value is in range, taking min/max scroll extent into account. Read more
Source§

fn jump_to_without_settling(self: Handle<Self>, app: &mut App, value: f64)

👎Deprecated:

This method bypasses scroll activity management and can cause inconsistent layouts or scrolling behavior. Use jump_to or a custom ScrollPosition instead.

Deprecated. Use ViewportOffset::jump_to or a custom ScrollPosition instead.
Source§

fn hold( self: Handle<Self>, app: &mut App, hold_cancel_callback: Listener, ) -> Rc<dyn ScrollHoldController>

Stop the current activity and start a crate::HoldScrollActivity.
Source§

fn drag( self: Handle<Self>, app: &mut App, details: DragStartDetails, drag_cancel_callback: Listener, ) -> Rc<dyn Drag>

Start a drag activity corresponding to the given DragStartDetails. Read more
Source§

fn dispose(self: Handle<Self>, app: &mut App)

Discards any resources used by the object.
Source§

fn debug_fill_description( self: Handle<Self>, app: &App, description: &mut Vec<String>, )

Add additional information to the given description for use by to_string. Read more
Source§

fn physics(self: Handle<Self>, app: &App) -> ScrollPhysicsRef

How the scroll position should respond to user input. Read more
Source§

fn context(self: Handle<Self>, app: &App) -> Rc<dyn ScrollContext>

Where the scrolling is taking place. Read more
Source§

fn keep_scroll_offset(self: Handle<Self>, app: &App) -> bool

Save the current scroll offset with PageStorage and restore it if this scroll position’s scrollable is recreated. Read more
Source§

fn debug_label(self: Handle<Self>, app: &App) -> Option<&str>

A label that is used in the to_string output. Read more
Source§

fn min_scroll_extent(self: Handle<Self>, app: &App) -> f64

Source§

fn max_scroll_extent(self: Handle<Self>, app: &App) -> f64

Source§

fn has_content_dimensions(self: Handle<Self>, app: &App) -> bool

Source§

fn viewport_dimension(self: Handle<Self>, app: &App) -> f64

Source§

fn has_viewport_dimension(self: Handle<Self>, app: &App) -> bool

Source§

fn axis(self: Handle<Self>, app: &App) -> Axis

Source§

fn device_pixel_ratio(self: Handle<Self>, app: &App) -> f64

Source§

fn out_of_range(self: Handle<Self>, app: &App) -> bool

Source§

fn at_edge(self: Handle<Self>, app: &App) -> bool

Source§

fn extent_before(self: Handle<Self>, app: &App) -> f64

Source§

fn extent_inside(self: Handle<Self>, app: &App) -> f64

Source§

fn extent_after(self: Handle<Self>, app: &App) -> f64

Source§

fn extent_total(self: Handle<Self>, app: &App) -> f64

Source§

fn copy_with(self: Handle<Self>, app: &App) -> Rc<dyn ScrollMetrics>

A snapshot of this position’s ScrollMetrics; Dart’s ScrollMetrics.copyWith. Read more
Source§

fn have_dimensions(self: Handle<Self>, app: &App) -> bool

Source§

fn should_ignore_pointer(self: Handle<Self>, app: &App) -> bool

Whether scrollables should absorb pointer events at this position. Read more
Source§

fn correct_pixels(self: Handle<Self>, app: &mut App, value: f64)

Change the value of pixels to the new value, without notifying any customers. Read more
Source§

fn force_pixels(self: Handle<Self>, app: &mut App, value: f64)

Change the value of pixels to the new value, and notify any customers, but without honoring normal conventions for changing the scroll offset. Read more
Source§

fn save_scroll_offset(self: Handle<Self>, app: &mut App)

Called whenever scrolling ends, to store the current scroll offset in a storage mechanism with a lifetime that matches the app’s lifetime. Read more
Source§

fn restore_scroll_offset(self: Handle<Self>, app: &mut App)

Called whenever the ScrollPosition is created, to restore the scroll offset if possible. Read more
Source§

fn restore_offset( self: Handle<Self>, app: &mut App, offset: f64, initial_restore: bool, )

Called by context to restore the scroll offset to the provided value. Read more
Source§

fn save_offset(self: Handle<Self>, app: &mut App)

Called whenever scrolling ends, to persist the current scroll offset for state restoration purposes. Read more
Source§

fn apply_boundary_conditions( self: Handle<Self>, app: &mut App, value: f64, ) -> f64

Returns the overscroll by applying the boundary conditions. Read more
Source§

fn correct_for_new_dimensions( self: Handle<Self>, app: &mut App, old_position: &dyn ScrollMetrics, new_position: &dyn ScrollMetrics, ) -> bool

Verifies that the new content and viewport dimensions are acceptable. Read more
Source§

fn ensure_visible( self: Handle<Self>, app: &mut App, object: AnyRenderObject, alignment: f64, duration: Duration, curve: Rc<dyn Curve>, alignment_policy: ScrollPositionAlignmentPolicy, target_render_object: Option<AnyRenderObject>, ) -> CompleterFuture<()> ⓘ

Animates the position such that the given object is as visible as possible by just scrolling this position. Read more
Source§

fn is_scrolling_notifier( self: Handle<Self>, app: &App, ) -> Handle<ValueNotifier<bool>>

This notifier’s value is true if a scroll is underway and false if the scroll position is idle. Read more
Source§

fn activity(self: Handle<Self>, app: &App) -> Option<AnyScrollActivity>

The currently operative AnyScrollActivity. Read more
Source§

fn did_start_scroll(self: Handle<Self>, app: &mut App)

Called by begin_activity to report when an activity has started.
Source§

fn did_update_scroll_position_by(self: Handle<Self>, app: &mut App, delta: f64)

Called by set_pixels to report a change to the pixels position.
Source§

fn did_end_scroll(self: Handle<Self>, app: &mut App)

Called by begin_activity to report when an activity has ended. Read more
Source§

fn did_overscroll_by(self: Handle<Self>, app: &mut App, value: f64)

Called by set_pixels to report overscroll when an attempt is made to change the pixels position. Overscroll is the amount of change that was not applied to the pixels value.
Source§

fn did_update_scroll_direction( self: Handle<Self>, app: &mut App, direction: ScrollDirection, )

Dispatches a notification that the ViewportOffset::user_scroll_direction has changed. Read more
Source§

fn did_update_scroll_metrics(self: Handle<Self>, app: &mut App)

Dispatches a notification that the ScrollMetrics have changed.
Source§

fn recommend_deferred_loading( self: Handle<Self>, app: &mut App, context: BuildContext, ) -> bool

Provides a heuristic to determine if expensive frame-bound tasks should be deferred. Read more
Source§

fn to_string(self: Handle<Self>, app: &App) -> String

Dart’s toString, which reads the arena and so cannot be Debug.
Source§

fn as_scroll_position(self: Handle<Self>) -> AnyScrollPosition

This position as the erased AnyScrollPosition — what to pass where a Dart API takes a ScrollPosition.
Source§

impl ScrollPositionWithSingleContextLeaf for ScrollPositionWithSingleContext

Source§

fn single_context_data( self: Handle<Self>, app: &App, ) -> &ScrollPositionWithSingleContextData

Dart’s ScrollPositionWithSingleContext fields, held under the field single_context (scroll_position_with_single_context_accessors!).
Source§

fn single_context_data_mut( self: Handle<Self>, app: &mut App, ) -> &mut ScrollPositionWithSingleContextData

Source§

fn axis_direction(self: Handle<Self>, app: &App) -> AxisDirection

Dart’s ScrollPositionWithSingleContext.axisDirection.
Source§

fn set_pixels(self: Handle<Self>, app: &mut App, new_pixels: f64) -> f64

Dart’s ScrollPositionWithSingleContext.setPixels.
Source§

fn absorb(self: Handle<Self>, app: &mut App, other: AnyScrollPosition)

Dart’s ScrollPositionWithSingleContext.absorb.
Source§

fn apply_new_dimensions(self: Handle<Self>, app: &mut App)

Dart’s ScrollPositionWithSingleContext.applyNewDimensions.
Source§

fn begin_activity( self: Handle<Self>, app: &mut App, new_activity: Option<ScrollActivityRef>, )

Dart’s ScrollPositionWithSingleContext.beginActivity.
Source§

fn apply_user_offset(self: Handle<Self>, app: &mut App, delta: f64)

Dart’s ScrollPositionWithSingleContext.applyUserOffset.
Source§

fn go_idle(self: Handle<Self>, app: &mut App)

Dart’s ScrollPositionWithSingleContext.goIdle.
Source§

fn go_ballistic(self: Handle<Self>, app: &mut App, velocity: f64)

Start a physics-driven simulation that settles the ViewportOffset::pixels position, starting at a particular velocity. Read more
Source§

fn user_scroll_direction(self: Handle<Self>, app: &App) -> ScrollDirection

Dart’s ScrollPositionWithSingleContext.userScrollDirection.
Source§

fn update_user_scroll_direction( self: Handle<Self>, app: &mut App, value: ScrollDirection, )

Source§

fn animate_to( self: Handle<Self>, app: &mut App, to: f64, duration: Duration, curve: Rc<dyn Curve>, ) -> CompleterFuture<()> ⓘ

Dart’s ScrollPositionWithSingleContext.animateTo.
Source§

fn jump_to(self: Handle<Self>, app: &mut App, value: f64)

Dart’s ScrollPositionWithSingleContext.jumpTo.
Source§

fn pointer_scroll(self: Handle<Self>, app: &mut App, delta: f64)

Dart’s ScrollPositionWithSingleContext.pointerScroll.
Source§

fn jump_to_without_settling(self: Handle<Self>, app: &mut App, value: f64)

Dart’s deprecated ScrollPositionWithSingleContext.jumpToWithoutSettling.
Source§

fn hold( self: Handle<Self>, app: &mut App, hold_cancel_callback: Listener, ) -> Rc<dyn ScrollHoldController>

Dart’s ScrollPositionWithSingleContext.hold.
Source§

fn drag( self: Handle<Self>, app: &mut App, details: DragStartDetails, drag_cancel_callback: Listener, ) -> Rc<dyn Drag>

Dart’s ScrollPositionWithSingleContext.drag.
Source§

fn dispose(self: Handle<Self>, app: &mut App)

Dart’s ScrollPositionWithSingleContext.dispose.
Source§

fn debug_fill_description( self: Handle<Self>, app: &App, description: &mut Vec<String>, )

Dart’s ScrollPositionWithSingleContext.debugFillDescription.
Source§

impl ViewportOffset for ScrollPositionWithSingleContext

Source§

fn pixels(self: Handle<Self>, app: &App) -> f64

The number of pixels to offset the children in the opposite of the axis direction. Read more
Source§

fn has_pixels(self: Handle<Self>, app: &App) -> bool

Whether the pixels property is available.
Source§

fn apply_viewport_dimension( self: Handle<Self>, app: &mut App, viewport_dimension: f64, ) -> bool

Called when the viewport’s extents are established. Read more
Source§

fn apply_content_dimensions( self: Handle<Self>, app: &mut App, min_scroll_extent: f64, max_scroll_extent: f64, ) -> bool

Called when the viewport’s content extents are established. Read more
Source§

fn correct_by(self: Handle<Self>, app: &mut App, correction: f64)

Apply a layout-time correction to the scroll offset. Read more
Source§

fn jump_to(self: Handle<Self>, app: &mut App, value: f64)

Jumps pixels from its current value to the given value, without animation, and without checking if the new value is in range. Read more
Source§

fn animate_to( self: Handle<Self>, app: &mut App, to: f64, duration: Duration, curve: Rc<dyn Curve>, ) -> CompleterFuture<()> ⓘ

Animates pixels from its current value to the given value. Read more
Source§

fn move_to( self: Handle<Self>, app: &mut App, to: f64, duration: Option<Duration>, curve: Option<Rc<dyn Curve>>, clamp: Option<bool>, ) -> CompleterFuture<()> ⓘ

Calls jump_to if duration is None or zero, otherwise animate_to is called. Read more
Source§

fn user_scroll_direction(self: Handle<Self>, app: &App) -> ScrollDirection

The direction in which the user is trying to change pixels, relative to the viewport’s axis_direction. Read more
Source§

fn allow_implicit_scrolling(self: Handle<Self>, app: &App) -> bool

Whether a viewport is allowed to change pixels implicitly to respond to a call to crate::RenderObject::show_on_screen. Read more
Source§

fn debug_fill_description( self: Handle<Self>, app: &App, description: &mut Vec<String>, )

Add additional information to the given description for use by Dart’s toString. Read more
Source§

fn as_viewport_offset(self: Handle<Self>) -> AnyViewportOffset

The type-erased ViewportOffset handle. Free: the vtable is a const, and the id is copied.

Auto Trait Implementations§

§

impl !RefUnwindSafe for ScrollPositionWithSingleContext

§

impl !Send for ScrollPositionWithSingleContext

§

impl !Sync for ScrollPositionWithSingleContext

§

impl !UnwindSafe for ScrollPositionWithSingleContext

§

impl Forget for ScrollPositionWithSingleContext

§

impl Freeze for ScrollPositionWithSingleContext
where *const u8 is !null: Freeze, PhantomData<Option<Listener>>: Freeze, *const RcInner<Cell<usize>> is !null: Freeze, PhantomData<RcInner<Cell<usize>>>: Freeze, *const RcInner<dyn ScrollPhysics> is !null: Freeze, PhantomData<RcInner<dyn ScrollPhysics>>: Freeze, *const RcInner<dyn ScrollContext> is !null: Freeze, PhantomData<RcInner<dyn ScrollContext>>: Freeze, PhantomData<u8>: Freeze, *const RcInner<dyn ScrollMetrics> is !null: Freeze, PhantomData<RcInner<dyn ScrollMetrics>>: Freeze, NonZero<u32>: Freeze, PhantomData<fn() -> ValueNotifier<bool>>: Freeze, *const RcInner<Keep> is !null: Freeze, PhantomData<RcInner<Keep>>: Freeze, &'static ScrollActivityVTable: Freeze, PhantomData<fn() -> ScrollDragController>: Freeze,

§

impl Move for ScrollPositionWithSingleContext

§

impl Unpin for ScrollPositionWithSingleContext
where *const u8 is !null: Unpin, Rc<dyn Fn(&mut App)>: Unpin, NonZero<u32>: Unpin, *const (): Unpin, Rc<Cell<usize>>: Unpin, Rc<dyn ScrollPhysics>: Unpin, Rc<dyn ScrollContext>: Unpin, Rc<dyn ScrollMetrics>: Unpin, Rc<Keep>: Unpin, &'static ScrollActivityVTable: Unpin,

§

impl UnsafeUnpin for ScrollPositionWithSingleContext
where *const u8 is !null: UnsafeUnpin, PhantomData<Option<Listener>>: UnsafeUnpin, *const RcInner<Cell<usize>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<usize>>>: UnsafeUnpin, *const RcInner<dyn ScrollPhysics> is !null: UnsafeUnpin, PhantomData<RcInner<dyn ScrollPhysics>>: UnsafeUnpin, *const RcInner<dyn ScrollContext> is !null: UnsafeUnpin, PhantomData<RcInner<dyn ScrollContext>>: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const RcInner<dyn ScrollMetrics> is !null: UnsafeUnpin, PhantomData<RcInner<dyn ScrollMetrics>>: UnsafeUnpin, NonZeroU32Inner: UnsafeUnpin, PhantomData<fn() -> ValueNotifier<bool>>: UnsafeUnpin, *const RcInner<Keep> is !null: UnsafeUnpin, PhantomData<RcInner<Keep>>: UnsafeUnpin, &'static ScrollActivityVTable: UnsafeUnpin, PhantomData<fn() -> ScrollDragController>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ListenableObject for T
where T: ChangeNotifier,

Source§

fn add_listener(self: Handle<T>, app: &mut App, listener: Listener)

Register a closure to be called when the object notifies its listeners.
Source§

fn remove_listener(self: Handle<T>, app: &mut App, listener: &Listener)

Remove a previously registered closure from the list of closures that the object notifies.
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>