[][src]Enum guion::widget::resolvable::Resolvable

pub enum Resolvable<'a, E> where
    E: Env
{ Widget(WidgetRef<'a, E>), Path(E::WidgetPath), }

This enum is returned by widget's resolve function

Variants

Widget(WidgetRef<'a, E>)
Path(E::WidgetPath)

Methods

impl<'a, E> Resolvable<'a, E> where
    E: Env
[src]

pub fn resolve_child(self, sub: E::WidgetPath) -> Result<Resolvable<'a, E>, ()>[src]

resolve further with the subpath if not a path meant to be used inside widget's resolve fn

pub fn resolve_widget(
    self,
    stor: &'a E::Storage
) -> Result<WidgetRef<'a, E>, ()>
[src]

completely resolve using the storage

pub fn extract_path(&self, dest: &mut E::WidgetPath)[src]

pub fn is_subpath(&self, p: &EWPSub<E>) -> bool[src]

Deprecated

is_subpath on the targeted widget

pub fn self_in_parent(&self, parent: E::WidgetPath) -> E::WidgetPath[src]

Deprecated

self_in_parent on the targeted widget

impl<'l: 's, 's, E: Env> Resolvable<'l, E>[src]

pub fn short_lt(self) -> Resolvable<'s, E>[src]

Auto Trait Implementations

impl<'a, E> !RefUnwindSafe for Resolvable<'a, E>

impl<'a, E> !Send for Resolvable<'a, E>

impl<'a, E> !Sync for Resolvable<'a, E>

impl<'a, E> Unpin for Resolvable<'a, E> where
    <E as Env>::WidgetPath: Unpin

impl<'a, E> !UnwindSafe for Resolvable<'a, E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.