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

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

This enum is returned by widget’s resolve function

A widget or path which can be resolved further to widget

Variants

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

Implementations

impl<'w, E> Resolvable<'w, E> where
    E: Env + 'static, 
[src]

pub fn from_widget<W>(w: W) -> Self where
    W: Widget<E> + 'w, 
[src]

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

Resolve further with the subpath if not a path

Meant to be used inside widget’s resolve fn

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

Completely resolve using the storage

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

pub fn resolved_by_path(
    &self,
    p: &E::WidgetPath
) -> Option<ResolvesThruResult<E>>
[src]

👎 Deprecated

If the path particle would resolve to this widget

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

👎 Deprecated

Extend the path representing the parent of this widget to resolve to this widget

pub fn guion_resolve_error_child_info(
    &self,
    child_idx: usize
) -> GuionResolveErrorChildInfo<E>
[src]

Auto Trait Implementations

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

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

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

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

impl<'w, E> !UnwindSafe for Resolvable<'w, 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> FromInto<U> for T where
    T: From<U> + Into<U>, 
[src]

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

impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
    T: StyleSelectorAppend<S, E>,
    S: StyleSelectag<E>, 
[src]

impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
    T: StyleSelectorAppend<S, E>,
    S: StyleSelectag<E>, 
[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.