Enum guion::widget::resolvable::Resolvable [−][src]
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]
E: Env + 'static,
pub fn from_widget<W>(w: W) -> Self where
W: Widget<E> + 'w,
[src]
W: Widget<E> + 'w,
pub fn resolve_child(
self,
sub: E::WidgetPath
) -> Result<Resolvable<'w, E>, GuionError<E>>
[src]
self,
sub: E::WidgetPath
) -> Result<Resolvable<'w, E>, GuionError<E>>
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]
self,
stor: &'a E::Storage
) -> Result<WidgetRef<'w, E>, GuionError<E>> where
'a: 'w,
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]
&self,
p: &E::WidgetPath
) -> Option<ResolvesThruResult<E>>
👎 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]
&self,
child_idx: usize
) -> GuionResolveErrorChildInfo<E>
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,
<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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> FromInto<U> for T where
T: From<U> + Into<U>,
[src]
T: From<U> + Into<U>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &S)
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &[S])
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,