EmbedBuilder

Struct EmbedBuilder 

Source
pub struct EmbedBuilder { /* private fields */ }

Implementations§

Source§

impl EmbedBuilder

Source

pub fn new() -> Self

Source

pub fn build(self, location: (u32, u32)) -> RawElement

Source

pub fn key<S: ToString>(self, key: S, _updated: bool) -> Self

Source

pub fn child(self, child: View, updated: bool) -> Self

Source

pub fn children<T: Into<Vec<View>>>(self, children: T, updated: bool) -> Self

Source

pub fn __last<T: Into<Vec<View>>>(self, children: T, updated: bool) -> Self

Source§

impl EmbedBuilder

Source

pub fn access_key<T>(self, val: T, updated: bool) -> Self
where T: Into<String>,

Source

pub fn class<T>(self, val: T, updated: bool) -> Self
where T: Into<String>,

Source

pub fn content_editable<T>(self, val: T, updated: bool) -> Self
where T: Into<bool>,

Source

pub fn dir<T>(self, val: T, updated: bool) -> Self
where T: Into<Dir>,

Source

pub fn draggable<T>(self, val: T, updated: bool) -> Self
where T: Into<bool>,

Source

pub fn id<T>(self, val: T, updated: bool) -> Self
where T: Into<String>,

Source

pub fn lang<T>(self, val: T, updated: bool) -> Self
where T: Into<String>,

Source

pub fn placeholder<T>(self, val: T, updated: bool) -> Self
where T: Into<String>,

Source

pub fn slot<T>(self, val: T, updated: bool) -> Self
where T: Into<String>,

Source

pub fn spell_check<T>(self, val: T, updated: bool) -> Self
where T: Into<bool>,

Source

pub fn style<T>(self, val: T, updated: bool) -> Self
where T: Into<String>,

Source

pub fn tab_index<T>(self, val: T, updated: bool) -> Self
where T: Into<i16>,

Source

pub fn title<T>(self, val: T, updated: bool) -> Self
where T: Into<String>,

Source

pub fn translate<T>(self, val: T, updated: bool) -> Self
where T: Into<Translate>,

Source

pub fn hidden(self, val: bool, updated: bool) -> Self

Source

pub fn on_blur( self, f: impl Fn(TypedEvent<FocusEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_focus( self, f: impl Fn(TypedEvent<FocusEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_composition_start( self, f: impl Fn(TypedEvent<CompositionEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_composition_update( self, f: impl Fn(TypedEvent<CompositionEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_composition_end( self, f: impl Fn(TypedEvent<CompositionEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_change( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_input( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_reset( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_submit( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_invalid( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_load( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_error( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_key_down( self, f: impl Fn(TypedEvent<KeyboardEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_key_up( self, f: impl Fn(TypedEvent<KeyboardEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_can_play( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_can_play_through( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_duration_change( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_emptied( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_ended( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_loaded_data( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_loaded_metadata( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pause( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_play( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_playing( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_rate_change( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_seeked( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_seeking( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_stalled( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_suspend( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_time_update( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_volume_change( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_waiting( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_aux_click( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_click( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_context_menu( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_double_click( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_mouse_down( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_mouse_enter( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_mouse_leave( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_mouse_move( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_mouse_over( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_mouse_out( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_mouse_up( self, f: impl Fn(TypedEvent<MouseEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pointer_lock_change( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pointer_lock_error( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_select( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_wheel( self, f: impl Fn(TypedEvent<WheelEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_drag( self, f: impl Fn(TypedEvent<DragEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_drag_end( self, f: impl Fn(TypedEvent<DragEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_drag_enter( self, f: impl Fn(TypedEvent<DragEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_drag_start( self, f: impl Fn(TypedEvent<DragEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_drag_leave( self, f: impl Fn(TypedEvent<DragEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_drag_over( self, f: impl Fn(TypedEvent<DragEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_drop( self, f: impl Fn(TypedEvent<DragEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_touch_cancel( self, f: impl Fn(TypedEvent<TouchEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_touch_end( self, f: impl Fn(TypedEvent<TouchEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_touch_move( self, f: impl Fn(TypedEvent<TouchEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_touch_start( self, f: impl Fn(TypedEvent<TouchEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pointer_over( self, f: impl Fn(TypedEvent<PointerEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pointer_enter( self, f: impl Fn(TypedEvent<PointerEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pointer_down( self, f: impl Fn(TypedEvent<PointerEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pointer_move( self, f: impl Fn(TypedEvent<PointerEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pointer_up( self, f: impl Fn(TypedEvent<PointerEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pointer_cancel( self, f: impl Fn(TypedEvent<PointerEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pointer_out( self, f: impl Fn(TypedEvent<PointerEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_pointer_leave( self, f: impl Fn(TypedEvent<PointerEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_got_pointer_capture( self, f: impl Fn(TypedEvent<PointerEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_lost_pointer_capture( self, f: impl Fn(TypedEvent<PointerEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_scroll( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_animation_start( self, f: impl Fn(TypedEvent<AnimationEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_animation_cancel( self, f: impl Fn(TypedEvent<AnimationEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_animation_end( self, f: impl Fn(TypedEvent<AnimationEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_animation_interaction( self, f: impl Fn(TypedEvent<AnimationEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_transition_start( self, f: impl Fn(TypedEvent<TransitionEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_transition_cancel( self, f: impl Fn(TypedEvent<TransitionEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_transition_end( self, f: impl Fn(TypedEvent<TransitionEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_transition_run( self, f: impl Fn(TypedEvent<TransitionEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_abort( self, f: impl Fn(TypedEvent<Event, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_load_start( self, f: impl Fn(TypedEvent<ProgressEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source

pub fn on_progress( self, f: impl Fn(TypedEvent<ProgressEvent, <EmbedBuilder as AssociatedNativeElement>::NativeElement>) + 'static, updated: bool, ) -> Self

Source§

impl EmbedBuilder

Source

pub fn width<T>(self, val: T, updated: bool) -> Self
where T: Into<f64>,

Source

pub fn height<T>(self, val: T, updated: bool) -> Self
where T: Into<f64>,

Source§

impl EmbedBuilder

Source

pub fn src<T>(self, val: T, updated: bool) -> Self
where T: Into<String>,

Source

pub fn type_<T>(self, val: T, updated: bool) -> Self
where T: Into<String>,

Trait Implementations§

Source§

impl Default for EmbedBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

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

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

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

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
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, 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.