HTMLInputElement

Struct HTMLInputElement 

Source
#[repr(C)]
pub(crate) struct HTMLInputElement {
Show 16 fields htmlelement: HTMLElement, input_type: Cell<InputType>, checked_changed: Cell<bool>, placeholder: DomRefCell<DOMString>, size: Cell<u32>, maxlength: Cell<i32>, minlength: Cell<i32>, textinput: DomRefCell<TextInput<EmbedderClipboardProvider>>, value_dirty: Cell<bool>, shared_selection: SharedSelection, filelist: MutNullableDom<FileList>, form_owner: MutNullableDom<HTMLFormElement>, labels_node_list: MutNullableDom<NodeList>, validity_state: MutNullableDom<ValidityState>, shadow_tree: DomRefCell<Option<InputElementShadowTree>>, pending_webdriver_response: RefCell<Option<PendingWebDriverResponse>>,
}

Fields§

§htmlelement: HTMLElement§input_type: Cell<InputType>§checked_changed: Cell<bool>§placeholder: DomRefCell<DOMString>§size: Cell<u32>§maxlength: Cell<i32>§minlength: Cell<i32>§textinput: DomRefCell<TextInput<EmbedderClipboardProvider>>§value_dirty: Cell<bool>§shared_selection: SharedSelection

A SharedSelection that is shared with layout. This can be updated dyanmnically and layout should reflect the new value after a display list update.

§filelist: MutNullableDom<FileList>§form_owner: MutNullableDom<HTMLFormElement>§labels_node_list: MutNullableDom<NodeList>§validity_state: MutNullableDom<ValidityState>§shadow_tree: DomRefCell<Option<InputElementShadowTree>>§pending_webdriver_response: RefCell<Option<PendingWebDriverResponse>>

Implementations§

Source§

impl HTMLInputElement

Source§

impl HTMLInputElement

Source

fn new_inherited( local_name: LocalName, prefix: Option<Prefix>, document: &Document, ) -> HTMLInputElement

Source

pub(crate) fn new( local_name: LocalName, prefix: Option<Prefix>, document: &Document, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> DomRoot<HTMLInputElement>

Source

pub(crate) fn auto_directionality(&self) -> Option<String>

Source

pub(crate) fn directionality_from_value(value: &str) -> String

Source

fn is_first_strong_character_rtl(value: &str) -> bool

Source

fn value_mode(&self) -> ValueMode

Source

pub(crate) fn input_type(&self) -> InputType

Source

pub(crate) fn is_nontypeable(&self) -> bool

Source

pub(crate) fn is_submit_button(&self) -> bool

Source

fn does_minmaxlength_apply(&self) -> bool

Source

fn does_pattern_apply(&self) -> bool

Source

fn does_multiple_apply(&self) -> bool

Source

fn does_value_as_number_apply(&self) -> bool

Source

fn does_value_as_date_apply(&self) -> bool

Source

fn allowed_value_step(&self) -> Option<f64>

Source

fn minimum(&self) -> Option<f64>

Source

fn maximum(&self) -> Option<f64>

Source

fn stepped_minimum(&self) -> Option<f64>

when allowed_value_step and minimum both exist, this is the smallest value >= minimum that lies on an integer step

Source

fn stepped_maximum(&self) -> Option<f64>

when allowed_value_step and maximum both exist, this is the smallest value <= maximum that lies on an integer step

Source

fn default_minimum(&self) -> Option<f64>

Source

fn default_maximum(&self) -> Option<f64>

Source

fn default_range_value(&self) -> f64

Source

fn default_step(&self) -> Option<f64>

Source

fn step_scale_factor(&self) -> f64

Source

fn step_base(&self) -> f64

Source

fn default_step_base(&self) -> Option<f64>

Source

fn step_up_or_down( &self, n: i32, dir: StepDirection, can_gc: CanGc, ) -> ErrorResult

Source

fn suggestions_source_element(&self) -> Option<DomRoot<HTMLDataListElement>>

Source

fn suffers_from_being_missing(&self, value: &DOMString) -> bool

Source

fn suffers_from_type_mismatch(&self, value: &DOMString) -> bool

Source

fn suffers_from_pattern_mismatch( &self, value: &DOMString, can_gc: CanGc, ) -> bool

Source

fn suffers_from_bad_input(&self, value: &DOMString) -> bool

Source

fn suffers_from_length_issues(&self, value: &DOMString) -> ValidationFlags

Source

fn suffers_from_range_issues(&self, value: &DOMString) -> ValidationFlags

Source

fn get_or_create_shadow_tree( &self, can_gc: CanGc, ) -> Ref<'_, InputElementShadowTree>

Get the shadow tree for this HTMLInputElement, if it is created and valid, otherwise recreate the shadow tree and return it.

Source

pub(crate) fn renders_as_text_input_widget(&self) -> bool

Whether this input type renders as a basic text input widget.

TODO(#38251): This should eventually only include text, password, url, tel, and email, but the others do not yet have a custom shadow DOM implementation.

Source

fn may_have_embedder_control(&self) -> bool

Source

fn handle_key_reaction(&self, action: KeyReaction, event: &Event, can_gc: CanGc)

Source

fn value_for_shadow_dom(&self) -> DOMString

Return a string that represents the contents of the element in its displayed shadow DOM.

Source§

impl HTMLInputElement

Source

fn radio_group_updated(&self, group: Option<&Atom>, can_gc: CanGc)

Source

pub(crate) fn form_datums( &self, submitter: Option<FormSubmitterElement<'_>>, encoding: Option<&'static Encoding>, ) -> Vec<FormDatum>

https://html.spec.whatwg.org/multipage/#constructing-the-form-data-set Steps range from 5.1 to 5.10 (specific to HTMLInputElement)

Source

fn radio_group_name(&self) -> Option<Atom>

Source

fn update_checked_state(&self, checked: bool, dirty: bool, can_gc: CanGc)

Source

pub(crate) fn is_mutable(&self) -> bool

Source

pub(crate) fn reset(&self, can_gc: CanGc)

https://html.spec.whatwg.org/multipage/#the-input-element:concept-form-reset-control:

The reset algorithm for input elements is to set its user validity, dirty value flag, and dirty checkedness flag back to false, set the value of the element to the value of the value content attribute, if there is one, or the empty string otherwise, set the checkedness of the element to true if the element has a checked content attribute and false if it does not, empty the list of selected files, and then invoke the value sanitization algorithm, if the type attribute’s current state defines one.

Source

pub(crate) fn clear(&self, can_gc: CanGc)

https://w3c.github.io/webdriver/#ref-for-dfn-clear-algorithm-3 Used by WebDriver to clear the input element.

Source

fn update_placeholder_shown_state(&self)

Source

pub(crate) fn select_files_for_webdriver( &self, test_paths: Vec<DOMString>, response_sender: GenericSender<Result<bool, ErrorStatus>>, )

Source

pub(crate) fn select_files(&self, test_paths: Option<Vec<DOMString>>)

Select files by invoking UI or by passed in argument.

https://html.spec.whatwg.org/multipage/#file-upload-state-(type=file)

Source

fn sanitize_value(&self, value: &mut DOMString)

Source

fn selection(&self) -> TextControlSelection<'_, Self>

Source

fn implicit_submission(&self, can_gc: CanGc)

Source

fn convert_string_to_number(&self, value: &str) -> Option<f64>

Source

fn convert_number_to_string(&self, value: f64) -> Option<DOMString>

Source

fn convert_string_to_naive_datetime( &self, value: DOMString, ) -> Option<OffsetDateTime>

Source

fn convert_datetime_to_dom_string(&self, value: OffsetDateTime) -> DOMString

https://html.spec.whatwg.org/multipage/#concept-input-value-date-string This does the safe Rust part of conversion; the unsafe JS Date part is in SetValueAsDate

Source

fn value_changed(&self, can_gc: CanGc)

Source

fn show_the_picker_if_applicable(&self)

Source

pub(crate) fn handle_color_picker_response( &self, response: Option<RgbColor>, can_gc: CanGc, )

Source

pub(crate) fn handle_file_picker_response( &self, response: Option<Vec<SelectedFile>>, can_gc: CanGc, )

Source

fn handle_focus_event(&self, event: &FocusEvent)

Source

fn handle_mouse_event(&self, mouse_event: &MouseEvent)

Trait Implementations§

Source§

impl Activatable for HTMLInputElement

§

impl Castable for HTMLInputElement

Source§

fn is<T>(&self) -> bool
where T: DerivedFrom<Self>,

Check whether a DOM object implements one of its deriving interfaces.
Source§

fn upcast<T>(&self) -> &T
where T: Castable, Self: DerivedFrom<T>,

Cast a DOM object upwards to one of the interfaces it derives from.
Source§

fn downcast<T>(&self) -> Option<&T>
where T: DerivedFrom<Self>,

Cast a DOM object downwards to one of the interfaces it might implement.
Source§

impl DomObject for HTMLInputElement

Source§

fn reflector(&self) -> &Reflector

Returns the receiver’s reflector.
Source§

impl DomObjectWrap<DomTypeHolder> for HTMLInputElement

Source§

const WRAP: unsafe fn(SafeJSContext, &GlobalScope, Option<HandleObject<'_>>, Box<Self>, CanGc) -> Root<Dom<Self>> = {script_bindings::codegen::GenericBindings::HTMLInputElementBinding::Wrap::<dom::bindings::codegen::DomTypeHolder::DomTypeHolder> as for<'a, 'b> unsafe fn(script_bindings::script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::html::htmlinputelement::HTMLInputElement>, script_bindings::script_runtime::CanGc) -> script_bindings::root::Root<script_bindings::root::Dom<dom::html::htmlinputelement::HTMLInputElement>>}

Function pointer to the general wrap function type
Source§

impl Drop for HTMLInputElement

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl FormControl for HTMLInputElement

Source§

fn form_owner(&self) -> Option<DomRoot<HTMLFormElement>>

Source§

fn set_form_owner(&self, form: Option<&HTMLFormElement>)

Source§

fn to_element(&self) -> &Element

Source§

fn is_listed(&self) -> bool

Source§

fn set_form_owner_from_parser(&self, form: &HTMLFormElement, can_gc: CanGc)

Source§

fn reset_form_owner(&self, can_gc: CanGc)

Source§

fn form_attribute_mutated(&self, mutation: AttributeMutation<'_>, can_gc: CanGc)

Source§

fn register_if_necessary(&self)

Source§

fn unregister_if_necessary(&self)

Source§

fn bind_form_control_to_tree(&self, can_gc: CanGc)

Source§

fn unbind_form_control_from_tree(&self, can_gc: CanGc)

Source§

fn get_form_attribute<InputFn, OwnerFn>( &self, attr: &LocalName, input: InputFn, owner: OwnerFn, ) -> DOMString
where InputFn: Fn(&Self) -> DOMString, OwnerFn: Fn(&HTMLFormElement) -> DOMString, Self: Sized,

Source§

fn get_form_boolean_attribute<InputFn, OwnerFn>( &self, attr: &LocalName, input: InputFn, owner: OwnerFn, ) -> bool
where InputFn: Fn(&Self) -> bool, OwnerFn: Fn(&HTMLFormElement) -> bool, Self: Sized,

Source§

fn is_candidate_for_constraint_validation(&self) -> bool

Source§

impl HTMLInputElementMethods<DomTypeHolder> for HTMLInputElement

Source§

fn GetForm(&self) -> Option<DomRoot<HTMLFormElement>>

Source§

fn GetFiles(&self) -> Option<DomRoot<FileList>>

Source§

fn SetFiles(&self, files: Option<&FileList>)

Source§

fn Checked(&self) -> bool

Source§

fn SetChecked(&self, checked: bool, can_gc: CanGc)

Source§

fn Type(&self) -> DOMString

Source§

fn Value(&self) -> DOMString

Source§

fn SetValue(&self, value: DOMString, can_gc: CanGc) -> ErrorResult

Source§

fn GetList(&self) -> Option<DomRoot<HTMLDataListElement>>

Source§

fn ValueAsNumber(&self) -> f64

Source§

fn SetValueAsNumber(&self, value: f64, can_gc: CanGc) -> ErrorResult

Source§

fn Indeterminate(&self) -> bool

Source§

fn SetIndeterminate(&self, val: bool)

Source§

fn Select(&self)

Source§

fn GetSelectionStart(&self) -> Option<u32>

Source§

fn SetSelectionStart(&self, start: Option<u32>) -> ErrorResult

Source§

fn GetSelectionEnd(&self) -> Option<u32>

Source§

fn SetSelectionEnd(&self, end: Option<u32>) -> ErrorResult

Source§

fn GetSelectionDirection(&self) -> Option<DOMString>

Source§

fn SetSelectionDirection(&self, direction: Option<DOMString>) -> ErrorResult

Source§

fn SetSelectionRange( &self, start: u32, end: u32, direction: Option<DOMString>, ) -> ErrorResult

Source§

fn SetRangeText(&self, replacement: DOMString) -> ErrorResult

Source§

fn SetRangeText_( &self, replacement: DOMString, start: u32, end: u32, selection_mode: SelectionMode, ) -> ErrorResult

Source§

fn SelectFiles(&self, paths: Vec<DOMString>)

Select the files based on filepaths passed in, enabled by dom_testing_html_input_element_select_files_enabled, used for test purpose.

Source§

fn StepUp(&self, n: i32, can_gc: CanGc) -> ErrorResult

Source§

fn StepDown(&self, n: i32, can_gc: CanGc) -> ErrorResult

Source§

fn WillValidate(&self) -> bool

Source§

fn Validity(&self, can_gc: CanGc) -> DomRoot<ValidityState>

Source§

fn CheckValidity(&self, can_gc: CanGc) -> bool

Source§

fn ReportValidity(&self, can_gc: CanGc) -> bool

Source§

fn ValidationMessage(&self) -> DOMString

Source§

fn SetCustomValidity(&self, error: DOMString, can_gc: CanGc)

Source§

fn Accept(&self) -> DOMString

Source§

fn SetAccept(&self, value: DOMString)

Source§

fn Alt(&self) -> DOMString

Source§

fn SetAlt(&self, value: DOMString)

Source§

fn DirName(&self) -> DOMString

Source§

fn SetDirName(&self, value: DOMString)

Source§

fn Disabled(&self) -> bool

Source§

fn SetDisabled(&self, value: bool)

Source§

fn DefaultChecked(&self) -> bool

Source§

fn SetDefaultChecked(&self, value: bool)

Source§

fn ReadOnly(&self) -> bool

Source§

fn SetReadOnly(&self, value: bool)

Source§

fn Size(&self) -> u32

Source§

fn SetSize(&self, value: u32) -> ErrorResult

Source§

fn SetType(&self, value: DOMString)

Source§

fn DefaultValue(&self) -> DOMString

Source§

fn SetDefaultValue(&self, value: DOMString)

Source§

fn Min(&self) -> DOMString

Source§

fn SetMin(&self, value: DOMString)

Source§

fn GetValueAsDate(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>>

Source§

fn SetValueAsDate( &self, cx: SafeJSContext, value: *mut JSObject, can_gc: CanGc, ) -> ErrorResult

Source§

fn Name(&self) -> DOMString

Source§

fn SetName(&self, value: DOMString)

Source§

fn Placeholder(&self) -> DOMString

Source§

fn SetPlaceholder(&self, value: DOMString)

Source§

fn FormAction(&self) -> DOMString

Source§

fn SetFormAction(&self, value: DOMString)

Source§

fn FormEnctype(&self) -> DOMString

Source§

fn SetFormEnctype(&self, value: DOMString)

Source§

fn FormMethod(&self) -> DOMString

Source§

fn SetFormMethod(&self, value: DOMString)

Source§

fn FormTarget(&self) -> DOMString

Source§

fn SetFormTarget(&self, value: DOMString)

Source§

fn FormNoValidate(&self) -> bool

Source§

fn SetFormNoValidate(&self, value: bool)

Source§

fn Max(&self) -> DOMString

Source§

fn SetMax(&self, value: DOMString)

Source§

fn MaxLength(&self) -> i32

Source§

fn SetMaxLength(&self, value: i32) -> ErrorResult

Source§

fn MinLength(&self) -> i32

Source§

fn SetMinLength(&self, value: i32) -> ErrorResult

Source§

fn Multiple(&self) -> bool

Source§

fn SetMultiple(&self, value: bool)

Source§

fn Pattern(&self) -> DOMString

Source§

fn SetPattern(&self, value: DOMString)

Source§

fn Required(&self) -> bool

Source§

fn SetRequired(&self, value: bool)

Source§

fn Src(&self) -> USVString

Source§

fn SetSrc(&self, value: USVString)

Source§

fn Step(&self) -> DOMString

Source§

fn SetStep(&self, value: DOMString)

Source§

fn GetLabels(&self, can_gc: CanGc) -> Option<DomRoot<NodeList>>

Source§

impl HasParent for HTMLInputElement

Source§

fn as_parent(&self) -> &HTMLElement

This is used in a type assertion to ensure that the source and webidls agree as to what the parent type is

Source§

type Parent = HTMLElement

Source§

impl IDLInterface for HTMLInputElement

Source§

fn derives(class: &'static DOMClass) -> bool

Returns whether the given DOM class derives that interface.
Source§

impl MallocSizeOf for HTMLInputElement

Source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
Source§

impl MutDomObject for HTMLInputElement

Source§

unsafe fn init_reflector(&self, obj: *mut JSObject)

Initializes the Reflector Read more
Source§

impl PartialEq for HTMLInputElement

Source§

fn eq(&self, other: &Self) -> 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 TextControlElement for HTMLInputElement

Source§

impl ToJSValConvertible for HTMLInputElement

Source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

fn safe_to_jsval(&self, cx: &mut JSContext, rval: MutableHandle<'_, Value>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl Traceable for HTMLInputElement

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.
Source§

impl Validatable for HTMLInputElement

Source§

impl VirtualMethods for HTMLInputElement

Source§

fn handle_event(&self, event: &Event, can_gc: CanGc)

Source§

fn cloning_steps( &self, copy: &Node, maybe_doc: Option<&Document>, clone_children: CloneChildrenFlag, can_gc: CanGc, )

Source§

fn super_type(&self) -> Option<&dyn VirtualMethods>

Returns self as the superclass of the implementation for this trait, if any.
Source§

fn attribute_mutated( &self, attr: &Attr, mutation: AttributeMutation<'_>, can_gc: CanGc, )

Source§

fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue

Returns the right AttrValue variant for the attribute with name name on this element.
Source§

fn bind_to_tree(&self, context: &BindContext<'_>, can_gc: CanGc)

Called when a Node is appended to a tree.
Source§

fn unbind_from_tree(&self, context: &UnbindContext<'_>, can_gc: CanGc)

Called when a Node is removed from a tree. Implements removing steps: https://dom.spec.whatwg.org/#concept-node-remove-ext
Source§

fn attribute_affects_presentational_hints(&self, attr: &Attr) -> bool

Returns true if given attribute attr affects style of the given element.
Source§

fn post_connection_steps(&self, can_gc: CanGc)

Invoked during a DOM tree mutation after a node becomes connected, once all related DOM tree mutations have been applied. https://dom.spec.whatwg.org/#concept-node-post-connection-ext
Source§

fn children_changed(&self, mutation: &ChildrenMutation<'_>, can_gc: CanGc)

Called on the parent when its children are changed.
Source§

fn adopting_steps(&self, old_doc: &Document, can_gc: CanGc)

Source§

fn pop(&self)

Called on an element when it is popped off the stack of open elements of a parser.
§

impl DerivedFrom<Element> for HTMLInputElement

§

impl DerivedFrom<EventTarget> for HTMLInputElement

§

impl DerivedFrom<HTMLElement> for HTMLInputElement

§

impl DerivedFrom<Node> for HTMLInputElement

Source§

impl Eq for HTMLInputElement

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<D, T> DomGlobalGeneric<D> for T
where D: DomTypes, T: DomObject,

Source§

fn global_(&self, realm: InRealm<'_>) -> Root<Dom<<D as DomTypes>::GlobalScope>>
where Self: Sized,

Returns the [GlobalScope] of the realm that the DomObject was created in. If this object is a Node, this will be different from it’s owning Document if adopted by. For Nodes it’s almost always better to use NodeTraits::owning_global.
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> Filterable for T

Source§

fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> MaybeBoxed<Box<T>> for T

Source§

fn maybe_boxed(self) -> Box<T>

Convert
Source§

impl<T> MaybeBoxed<T> for T

Source§

fn maybe_boxed(self) -> T

Convert
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> SafeToJSValConvertible for T

Source§

fn safe_to_jsval( &self, cx: JSContext, rval: MutableHandle<'_, Value>, _can_gc: CanGc, )

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ThisReflector for T
where T: DomObject,

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> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> MaybeSendSync for T