B

Struct B 

Source
pub struct B(pub Entity);

Tuple Fields§

§0: Entity

Trait Implementations§

Source§

impl AsEntity for B

Source§

fn as_entity(&self) -> Entity

Source§

fn try_get_cmp<'a, C: 'static>( &self, ) -> Option<OwningRef<OwningRef<OwningHandle<Rc<RefCell<Box<dyn DynStorage + 'static>>>, Ref<'a, Box<dyn DynStorage>>>, SimpleStorage<C>>, C>>
where Self: Sized,

Source§

fn try_get_cmp_mut<'a, C: 'static>( &self, ) -> Option<OwningRefMut<StorageGuard<'a, C, OwningRefMut<OwningHandle<Rc<RefCell<Box<dyn DynStorage + 'static>>>, RefMut<'a, Box<dyn DynStorage>>>, SimpleStorage<C>>>, C>>
where Self: Sized,

Source§

fn get_cmp<'a, C: 'static>( &self, ) -> OwningRef<OwningRef<OwningHandle<Rc<RefCell<Box<dyn DynStorage + 'static>>>, Ref<'a, Box<dyn DynStorage>>>, SimpleStorage<C>>, C>
where Self: Sized,

Source§

fn get_cmp_mut<'a, C: 'static>( &self, ) -> OwningRefMut<StorageGuard<'a, C, OwningRefMut<OwningHandle<Rc<RefCell<Box<dyn DynStorage + 'static>>>, RefMut<'a, Box<dyn DynStorage>>>, SimpleStorage<C>>>, C>
where Self: Sized,

Source§

fn get_cmp_mut_or<'a, C: 'static>( &self, f: impl FnOnce() -> C, ) -> OwningRefMut<StorageGuard<'a, C, OwningRefMut<OwningHandle<Rc<RefCell<Box<dyn DynStorage + 'static>>>, RefMut<'a, Box<dyn DynStorage>>>, SimpleStorage<C>>>, C>
where Self: Sized,

Source§

fn get_cmp_mut_or_default<'a, C: 'static + Default>( &self, ) -> OwningRefMut<StorageGuard<'a, C, OwningRefMut<OwningHandle<Rc<RefCell<Box<dyn DynStorage + 'static>>>, RefMut<'a, Box<dyn DynStorage>>>, SimpleStorage<C>>>, C>
where Self: Sized,

Source§

fn remove_cmp<C: 'static>(&self)
where Self: Sized,

Source§

fn find_in_ancestors<Q: Query>(&self) -> Vec<Q::Fetch>

Source§

fn try_find_first_in_ancestors<Q: Query>(&self) -> Option<Q::Fetch>

Source§

fn find_first_in_ancestors<Q: Query>(&self) -> Q::Fetch

Source§

fn find_in_descendants<Q: Query>(&self) -> Vec<Q::Fetch>

Source§

fn find_in_children<Q: Query>(&self) -> Vec<Q::Fetch>

Source§

fn try_find_first_in_descendants<Q: Query>(&self) -> Option<Q::Fetch>

Source§

fn try_find_first_in_children<Q: Query>(&self) -> Option<Q::Fetch>

Source§

fn find_first_in_descendants<Q: Query>(&self) -> Q::Fetch

Source§

fn find_first_in_children<Q: Query>(&self) -> Q::Fetch

Source§

fn has_cmp<C: 'static>(&self) -> bool
where Self: Sized,

Source§

fn remove(&self)

Source§

fn is_dead(&self) -> bool

Source§

fn add_component<T: 'static>(&self, component: T)

Source§

fn component<T: 'static>(self, component: T) -> Self
where Self: Sized,

Source§

impl Clone for B

Source§

fn clone(&self) -> B

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for B

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Element for B

Source§

fn add_child(&self, child: impl Element)

Source§

fn child(self, child: impl Element) -> Self

Source§

fn add_children<Item: Element>(&self, children: impl IntoIterator<Item = Item>)

Source§

fn children<Item: Element>( self, children: impl IntoIterator<Item = Item>, ) -> Self

Source§

fn leave_parent(self)

Source§

fn add_child_at(&self, at_id: usize, child: impl Element)

Source§

fn add_child_signal<S, E>(&self, signal: S)
where E: Element, S: Signal<Item = E> + 'static,

Source§

fn child_signal<S, E>(self, signal: S) -> Self
where E: Element, S: Signal<Item = E> + 'static,

Source§

fn set_class_tagged<Tag: Hash + 'static>( &self, tag: Tag, style: impl Into<Style>, )

Source§

fn set_class_typed<Type: 'static>(&self, style: Style)

Source§

fn set_class(&self, style: impl Into<Style>)

Source§

fn add_class(&self, style: impl Into<Style>)

Source§

fn class(self, style: impl Into<Style>) -> Self

Source§

fn class_tagged<Tag: Hash + 'static>( self, tag: Tag, style: impl Into<Style>, ) -> Self

Source§

fn class_typed<Type: 'static>(self, style: Style) -> Self

Source§

fn set_class_signal<S, I>(&self, signal: S)
where I: Into<Style>, S: Signal<Item = I> + 'static,

Source§

fn class_signal<S, I>(self, signal: S) -> Self
where I: Into<Style>, S: Signal<Item = I> + 'static,

Source§

fn set_class_typed_signal<Type, S, I>(&self, signal: S)
where Type: 'static, I: Into<Style>, S: Signal<Item = I> + 'static,

Source§

fn class_typed_signal<Type, S, I>(self, signal: S) -> Self
where Type: 'static, I: Into<Style>, S: Signal<Item = I> + 'static,

Source§

fn set_class_tagged_signal<Tag, S, I>(&self, tag: Tag, signal: S)
where Tag: Hash + Copy + 'static, I: Into<Style>, S: Signal<Item = I> + 'static,

Source§

fn class_tagged_signal<Tag, S, I>(self, tag: Tag, signal: S) -> Self
where Tag: Hash + Copy + 'static, I: Into<Style>, S: Signal<Item = I> + 'static,

Source§

fn set_attr<'k, 'v>( &self, key: impl Into<Cow<'k, str>>, value: impl Into<Cow<'v, str>>, )

Source§

fn attr<'k, 'v>( self, key: impl Into<Cow<'k, str>>, value: impl Into<Cow<'v, str>>, ) -> Self

Source§

fn set_bool_attr<'k>(&self, key: impl Into<Cow<'k, str>>, value: bool)

Source§

fn bool_attr<'k>(self, key: impl Into<Cow<'k, str>>, value: bool) -> Self

Source§

fn remove_attr<'k>(&self, key: impl Into<Cow<'k, str>>)

Source§

fn set_attr_signal<'k, 'v, S, K, V>(&self, signal: S)
where K: Into<Cow<'k, str>>, V: Into<Cow<'v, str>>, S: Signal<Item = (K, V)> + 'static,

Source§

fn attr_signal<'k, 'v, S, K, V>(self, x: S) -> Self
where K: Into<Cow<'k, str>>, V: Into<Cow<'v, str>>, S: Signal<Item = (K, V)> + 'static,

Source§

fn set_bool_attr_signal<'k, S, K>(&self, attr: K, signal: S)
where K: Into<Cow<'k, str>>, S: Signal<Item = bool> + 'static,

Source§

fn bool_attr_signal<'k, S, K>(self, attr: K, x: S) -> Self
where K: Into<Cow<'k, str>>, S: Signal<Item = bool> + 'static,

Source§

fn set_text<'a>(&self, text: impl Into<Cow<'a, str>>)

Source§

fn text<'a>(self, x: impl Into<Cow<'a, str>>) -> Self

Source§

fn set_text_signal<'a, S, I>(&self, signal: S)
where I: Into<Cow<'a, str>>, S: Signal<Item = I> + 'static,

Source§

fn text_signal<'a, S, I>(self, x: S) -> Self
where I: Into<Cow<'a, str>>, S: Signal<Item = I> + 'static,

Source§

fn set_style(&self, style: impl AppendProperty)

Source§

fn style(self, style: impl AppendProperty) -> Self

Source§

fn remove_style(&self)

Source§

fn set_style_signal<S, I>(&self, signal: S)
where I: AppendProperty, S: Signal<Item = I> + 'static,

Source§

fn style_signal<S, I>(self, signal: S) -> Self
where I: AppendProperty, S: Signal<Item = I> + 'static,

Source§

fn mark<T: 'static>(self) -> Self

Source§

fn unmark<T: 'static>(self) -> Self

Source§

fn mark_signal<T: 'static, S>(self, signal: S) -> Self
where S: Signal<Item = bool> + 'static,

Source§

fn with_component<T: 'static>(self, f: impl FnOnce(&Self) -> T) -> Self

Source§

fn replace_with<T: Element>(&self, other: T) -> T

Source§

fn with(self, f: impl FnOnce(&Self)) -> Self

Source§

fn erase(&self) -> SomeElement

Source§

impl Hash for B

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for B

Source§

fn eq(&self, other: &B) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for B

Source§

impl Eq for B

Source§

impl StructuralPartialEq for B

Auto Trait Implementations§

§

impl Freeze for B

§

impl RefUnwindSafe for B

§

impl Send for B

§

impl Sync for B

§

impl Unpin for B

§

impl UnwindSafe for B

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> AsAny for T
where T: Any,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Source§

fn type_name(&self) -> &'static str

Gets the type name of self
Source§

impl<T> Blur for T
where T: Element,

Source§

fn add_on_blur(&self, f: impl FnMut(FocusEvent) + 'static)

Source§

fn on_blur(self, f: impl FnMut(FocusEvent) + 'static) -> Self
where Self: Sized,

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<T> Canplay for T
where T: Element,

Source§

fn add_on_can_play(&self, f: impl FnMut(Event) + 'static)

Source§

fn on_can_play(self, f: impl FnMut(Event) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Change for T
where T: Element,

Source§

fn add_on_change(&self, f: impl FnMut(Event) + 'static)

Source§

fn on_change(self, f: impl FnMut(Event) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Click for T
where T: Element,

Source§

fn add_on_click(&self, f: impl FnMut(MouseEvent) + 'static)

Source§

fn on_click(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Contextmenu for T
where T: Element,

Source§

fn add_on_context_menu(&self, f: impl FnMut(MouseEvent) + 'static)

Source§

fn on_context_menu(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Dblclick for T
where T: Element,

Source§

fn add_on_dbl_click(&self, f: impl FnMut(MouseEvent) + 'static)

Source§

fn on_dbl_click(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Focus for T
where T: Element,

Source§

fn add_on_focus(&self, f: impl FnMut(FocusEvent) + 'static)

Source§

fn on_focus(self, f: impl FnMut(FocusEvent) + 'static) -> Self
where Self: Sized,

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> Keydown for T
where T: Element,

Source§

fn add_on_key_down(&self, f: impl FnMut(KeyboardEvent) + 'static)

Source§

fn on_key_down(self, f: impl FnMut(KeyboardEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Keyup for T
where T: Element,

Source§

fn add_on_key_up(&self, f: impl FnMut(KeyboardEvent) + 'static)

Source§

fn on_key_up(self, f: impl FnMut(KeyboardEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Load for T
where T: Element,

Source§

fn add_on_load(&self, f: impl FnMut(Event) + 'static)

Source§

fn on_load(self, f: impl FnMut(Event) + 'static) -> Self
where Self: Sized,

Source§

impl<T> MarkClassString<T> for T
where T: 'static,

Source§

impl<T> Mousedown for T
where T: Element,

Source§

fn add_on_mouse_down(&self, f: impl FnMut(MouseEvent) + 'static)

Source§

fn on_mouse_down(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Mouseenter for T
where T: Element,

Source§

fn add_on_mouse_enter(&self, f: impl FnMut(MouseEvent) + 'static)

Source§

fn on_mouse_enter(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Mouseleave for T
where T: Element,

Source§

fn add_on_mouse_leave(&self, f: impl FnMut(MouseEvent) + 'static)

Source§

fn on_mouse_leave(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Mousemove for T
where T: Element,

Source§

fn add_on_mouse_move(&self, f: impl FnMut(MouseEvent) + 'static)

Source§

fn on_mouse_move(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Mouseout for T
where T: Element,

Source§

fn add_on_mouse_out(&self, f: impl FnMut(MouseEvent) + 'static)

Source§

fn on_mouse_out(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Mouseover for T
where T: Element,

Source§

fn add_on_mouse_over(&self, f: impl FnMut(MouseEvent) + 'static)

Source§

fn on_mouse_over(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Mouseup for T
where T: Element,

Source§

fn add_on_mouse_up(&self, f: impl FnMut(MouseEvent) + 'static)

Source§

fn on_mouse_up(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Resource for T
where T: 'static,

Source§

fn register_resource(self)
where Self: Sized,

Source§

fn resource<'a>() -> OwningRef<OwningRef<OwningHandle<Rc<RefCell<Box<dyn DynStorage + 'static>>>, Ref<'a, Box<dyn DynStorage>>>, SimpleStorage<Self>>, Self>
where Self: Sized,

Source§

fn resource_mut<'a>() -> OwningRefMut<StorageGuard<'a, Self, OwningRefMut<OwningHandle<Rc<RefCell<Box<dyn DynStorage + 'static>>>, RefMut<'a, Box<dyn DynStorage>>>, SimpleStorage<Self>>>, Self>
where Self: Sized,

Source§

fn try_resource<'a>() -> Option<OwningRef<OwningRef<OwningHandle<Rc<RefCell<Box<dyn DynStorage + 'static>>>, Ref<'a, Box<dyn DynStorage>>>, SimpleStorage<Self>>, Self>>
where Self: Sized,

Source§

fn try_resource_mut<'a>() -> Option<OwningRefMut<StorageGuard<'a, Self, OwningRefMut<OwningHandle<Rc<RefCell<Box<dyn DynStorage + 'static>>>, RefMut<'a, Box<dyn DynStorage>>>, SimpleStorage<Self>>>, Self>>
where Self: Sized,

Source§

impl<T> Scroll for T
where T: Element,

Source§

fn add_on_scroll(&self, f: impl FnMut(UiEvent) + 'static)

Source§

fn on_scroll(self, f: impl FnMut(UiEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> Touchcancel for T
where T: Element,

Source§

fn add_on_touch_cancel(&self, f: impl FnMut(TouchEvent) + 'static)

Source§

fn on_touch_cancel(self, f: impl FnMut(TouchEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Touchend for T
where T: Element,

Source§

fn add_on_touch_end(&self, f: impl FnMut(TouchEvent) + 'static)

Source§

fn on_touch_end(self, f: impl FnMut(TouchEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Touchmove for T
where T: Element,

Source§

fn add_on_touch_move(&self, f: impl FnMut(TouchEvent) + 'static)

Source§

fn on_touch_move(self, f: impl FnMut(TouchEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Touchstart for T
where T: Element,

Source§

fn add_on_touch_start(&self, f: impl FnMut(TouchEvent) + 'static)

Source§

fn on_touch_start(self, f: impl FnMut(TouchEvent) + 'static) -> Self
where Self: Sized,

Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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> Wheel for T
where T: Element,

Source§

fn add_on_wheel(&self, f: impl FnMut(WheelEvent) + 'static)

Source§

fn on_wheel(self, f: impl FnMut(WheelEvent) + 'static) -> Self
where Self: Sized,

Source§

impl<T> Erased for T