pub struct AnyInkFeature { /* private fields */ }Expand description
Erased InkFeature: one identity and a static vtable.
Equality is Dart’s == on an object reference.
Implementations§
Source§impl AnyInkFeature
impl AnyInkFeature
Sourcepub fn upgrade(self, app: &App) -> Option<Retained<AnyInkFeature>>
pub fn upgrade(self, app: &App) -> Option<Retained<AnyInkFeature>>
A reference while something still keeps the object, None once it is freed or
its last keeper has let go; see Handle::upgrade.
Sourcepub fn keep(self, app: &App) -> Retained<AnyInkFeature>
pub fn keep(self, app: &App) -> Retained<AnyInkFeature>
A reference to an object something is known to keep; see
Handle::keep.
Source§impl AnyInkFeature
impl AnyInkFeature
Sourcepub fn downcast<T: 'static>(self, app: &App) -> Option<Handle<T>>
pub fn downcast<T: 'static>(self, app: &App) -> Option<Handle<T>>
Dart’s feature as T: the typed handle when this feature is a T, else None.
Sourcepub fn controller(self, app: &App) -> AnyMaterialInkController
pub fn controller(self, app: &App) -> AnyMaterialInkController
Sourcepub fn reference_box(self, app: &App) -> AnyRenderBox
pub fn reference_box(self, app: &App) -> AnyRenderBox
Trait Implementations§
Source§impl Clone for AnyInkFeature
impl Clone for AnyInkFeature
impl Copy for AnyInkFeature
Source§impl Debug for AnyInkFeature
impl Debug for AnyInkFeature
impl Eq for AnyInkFeature
Source§impl From<AnyInkFeature> for HandleId
impl From<AnyInkFeature> for HandleId
Source§fn from(handle: AnyInkFeature) -> HandleId
fn from(handle: AnyInkFeature) -> HandleId
Converts to this type from the input type.
Source§impl<Leaf: InkFeatureLeaf> From<Handle<Leaf>> for AnyInkFeature
impl<Leaf: InkFeatureLeaf> From<Handle<Leaf>> for AnyInkFeature
Source§fn from(handle: Handle<Leaf>) -> AnyInkFeature
fn from(handle: Handle<Leaf>) -> AnyInkFeature
Converts to this type from the input type.
Source§impl Hash for AnyInkFeature
impl Hash for AnyInkFeature
Source§impl PartialEq for AnyInkFeature
impl PartialEq for AnyInkFeature
Source§impl PartialEq<AnyInkFeature> for &Retained<AnyInkFeature>
impl PartialEq<AnyInkFeature> for &Retained<AnyInkFeature>
Auto Trait Implementations§
impl Forget for AnyInkFeature
impl Freeze for AnyInkFeature
impl Move for AnyInkFeature
impl RefUnwindSafe for AnyInkFeature
impl Send for AnyInkFeature
impl Sync for AnyInkFeature
impl Unpin for AnyInkFeature
impl UnsafeUnpin for AnyInkFeaturewhere
NonZeroU32Inner: UnsafeUnpin,
&'static InkFeatureVTable: UnsafeUnpin,
impl UnwindSafe for AnyInkFeature
Blanket Implementations§
Source§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.