script::dom::eventtarget

Struct EventTarget

Source
#[repr(C)]
pub struct EventTarget { reflector_: Reflector, handlers: DomRefCell<HashMapTracedValues<Atom, EventListeners, BuildHasherDefault<FnvHasher>>>, }

Fields§

§reflector_: Reflector§handlers: DomRefCell<HashMapTracedValues<Atom, EventListeners, BuildHasherDefault<FnvHasher>>>

Implementations§

Source§

impl EventTarget

§

impl EventTarget

pub(crate) fn type_id(&self) -> &'static EventTargetTypeId

Source§

impl EventTarget

Source

pub(crate) fn new_inherited() -> EventTarget

Source

fn new( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> DomRoot<EventTarget>

Source

pub(crate) fn has_listeners_for(&self, type_: &Atom) -> bool

Determine if there are any listeners for a given event type. See https://github.com/whatwg/dom/issues/453.

Source

pub(crate) fn get_listeners_for(&self, type_: &Atom) -> EventListeners

Source

pub(crate) fn dispatch_event(&self, event: &Event, can_gc: CanGc) -> EventStatus

Source

pub(crate) fn remove_all_listeners(&self)

Source

fn default_passive_value(&self, ty: &Atom) -> bool

Source

fn set_inline_event_listener( &self, ty: Atom, listener: Option<InlineEventListener>, )

Source

pub(crate) fn remove_listener( &self, ty: &Atom, entry: &Rc<RefCell<EventListenerEntry>>, )

Source

pub(crate) fn is_passive( &self, ty: &Atom, listener: &Rc<RefCell<EventListenerEntry>>, ) -> bool

Determines the passive attribute of an associated event listener

Source

fn get_inline_event_listener( &self, ty: &Atom, can_gc: CanGc, ) -> Option<CommonEventHandler>

Source

pub(crate) fn set_event_handler_uncompiled( &self, url: ServoUrl, line: usize, ty: &str, source: DOMString, )

Store the raw uncompiled event handler for on-demand compilation later. https://html.spec.whatwg.org/multipage/#event-handler-attributes:event-handler-content-attributes-3

Source

fn get_compiled_event_handler( &self, handler: InternalRawUncompiledHandler, ty: &Atom, can_gc: CanGc, ) -> Option<CommonEventHandler>

Source

pub(crate) fn set_event_handler_common<T: CallbackContainer<DomTypeHolder>>( &self, ty: &str, listener: Option<Rc<T>>, )

Source

pub(crate) fn set_error_event_handler<T: CallbackContainer<DomTypeHolder>>( &self, ty: &str, listener: Option<Rc<T>>, )

Source

pub(crate) fn set_beforeunload_event_handler<T: CallbackContainer<DomTypeHolder>>( &self, ty: &str, listener: Option<Rc<T>>, )

Source

pub(crate) fn get_event_handler_common<T: CallbackContainer<DomTypeHolder>>( &self, ty: &str, can_gc: CanGc, ) -> Option<Rc<T>>

Source

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

Source

pub(crate) fn fire_event(&self, name: Atom, can_gc: CanGc) -> DomRoot<Event>

Source

pub(crate) fn fire_bubbling_event( &self, name: Atom, can_gc: CanGc, ) -> DomRoot<Event>

Source

pub(crate) fn fire_cancelable_event( &self, name: Atom, can_gc: CanGc, ) -> DomRoot<Event>

Source

pub(crate) fn fire_bubbling_cancelable_event( &self, name: Atom, can_gc: CanGc, ) -> DomRoot<Event>

Source

pub(crate) fn fire_event_with_params( &self, name: Atom, bubbles: EventBubbles, cancelable: EventCancelable, can_gc: CanGc, ) -> DomRoot<Event>

Source

pub(crate) fn add_event_listener( &self, ty: DOMString, listener: Option<Rc<EventListener<DomTypeHolder>>>, options: AddEventListenerOptions, )

Source

pub(crate) fn remove_event_listener( &self, ty: DOMString, listener: Option<Rc<EventListener<DomTypeHolder>>>, options: EventListenerOptions, )

Source

pub(crate) fn get_the_parent( &self, event: &Event, ) -> Option<DomRoot<EventTarget>>

Source

pub(crate) fn retarget(&self, b: &Self) -> DomRoot<EventTarget>

Trait Implementations§

§

impl Castable for EventTarget

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 EventTarget

Source§

fn reflector(&self) -> &Reflector

Returns the receiver’s reflector.
Source§

impl DomObjectWrap<DomTypeHolder> for EventTarget

Source§

const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::GenericBindings::EventTargetBinding::EventTarget_Binding::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::eventtarget::EventTarget>, script_bindings::script_runtime::CanGc) -> script_bindings::root::Root<script_bindings::root::Dom<dom::eventtarget::EventTarget>>}

Function pointer to the general wrap function type
Source§

impl EventTargetMethods<DomTypeHolder> for EventTarget

Source§

impl HasParent for EventTarget

Source§

fn as_parent(&self) -> &Reflector

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 = Reflector

Source§

impl IDLInterface for EventTarget

Source§

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

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

impl MallocSizeOf for EventTarget

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 EventTarget

Source§

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

Initializes the Reflector Read more
Source§

impl PartialEq for EventTarget

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 ToJSValConvertible for EventTarget

Source§

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

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

impl Traceable for EventTarget

Source§

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

Trace self.
Source§

impl VirtualMethods for EventTarget

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 attribute_affects_presentational_hints(&self, attr: &Attr) -> bool

Returns true if given attribute attr affects style of the given element.
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 post_connection_steps(&self)

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 bind_to_tree(&self, context: &BindContext, can_gc: CanGc)

Called when a Node is appended to a tree, where ‘tree_connected’ indicates whether the tree is part of a Document.
Source§

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

Called when a Node is removed from a tree, where ‘tree_connected’ indicates whether the tree is part of a Document. Implements removing steps: https://dom.spec.whatwg.org/#concept-node-remove-ext
Source§

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

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

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

Called during event dispatch after the bubbling phase completes.
Source§

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

Source§

fn cloning_steps( &self, copy: &Node, maybe_doc: Option<&Document>, clone_children: CloneChildrenFlag, 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<EventTarget> for AnalyserNode

§

impl DerivedFrom<EventTarget> for Attr

§

impl DerivedFrom<EventTarget> for AudioBufferSourceNode

§

impl DerivedFrom<EventTarget> for AudioContext

§

impl DerivedFrom<EventTarget> for AudioDestinationNode

§

impl DerivedFrom<EventTarget> for AudioNode

§

impl DerivedFrom<EventTarget> for AudioScheduledSourceNode

§

impl DerivedFrom<EventTarget> for AudioTrackList

§

impl DerivedFrom<EventTarget> for BaseAudioContext

§

impl DerivedFrom<EventTarget> for BiquadFilterNode

§

impl DerivedFrom<EventTarget> for Bluetooth

§

impl DerivedFrom<EventTarget> for BluetoothDevice

§

impl DerivedFrom<EventTarget> for BluetoothPermissionResult

§

impl DerivedFrom<EventTarget> for BluetoothRemoteGATTCharacteristic

§

impl DerivedFrom<EventTarget> for BluetoothRemoteGATTService

§

impl DerivedFrom<EventTarget> for BroadcastChannel

§

impl DerivedFrom<EventTarget> for CDATASection

§

impl DerivedFrom<EventTarget> for ChannelMergerNode

§

impl DerivedFrom<EventTarget> for ChannelSplitterNode

§

impl DerivedFrom<EventTarget> for CharacterData

§

impl DerivedFrom<EventTarget> for Comment

§

impl DerivedFrom<EventTarget> for ConstantSourceNode

§

impl DerivedFrom<EventTarget> for DedicatedWorkerGlobalScope

§

impl DerivedFrom<EventTarget> for DissimilarOriginWindow

§

impl DerivedFrom<EventTarget> for Document

§

impl DerivedFrom<EventTarget> for DocumentFragment

§

impl DerivedFrom<EventTarget> for DocumentType

§

impl DerivedFrom<EventTarget> for Element

§

impl DerivedFrom<EventTarget> for EventSource

§

impl DerivedFrom<EventTarget> for EventTarget

§

impl DerivedFrom<EventTarget> for FileReader

§

impl DerivedFrom<EventTarget> for FontFaceSet

§

impl DerivedFrom<EventTarget> for GPUDevice

§

impl DerivedFrom<EventTarget> for GainNode

§

impl DerivedFrom<EventTarget> for GlobalScope

§

impl DerivedFrom<EventTarget> for HTMLAnchorElement

§

impl DerivedFrom<EventTarget> for HTMLAreaElement

§

impl DerivedFrom<EventTarget> for HTMLAudioElement

§

impl DerivedFrom<EventTarget> for HTMLBRElement

§

impl DerivedFrom<EventTarget> for HTMLBaseElement

§

impl DerivedFrom<EventTarget> for HTMLBodyElement

§

impl DerivedFrom<EventTarget> for HTMLButtonElement

§

impl DerivedFrom<EventTarget> for HTMLCanvasElement

§

impl DerivedFrom<EventTarget> for HTMLDListElement

§

impl DerivedFrom<EventTarget> for HTMLDataElement

§

impl DerivedFrom<EventTarget> for HTMLDataListElement

§

impl DerivedFrom<EventTarget> for HTMLDetailsElement

§

impl DerivedFrom<EventTarget> for HTMLDialogElement

§

impl DerivedFrom<EventTarget> for HTMLDirectoryElement

§

impl DerivedFrom<EventTarget> for HTMLDivElement

§

impl DerivedFrom<EventTarget> for HTMLElement

§

impl DerivedFrom<EventTarget> for HTMLEmbedElement

§

impl DerivedFrom<EventTarget> for HTMLFieldSetElement

§

impl DerivedFrom<EventTarget> for HTMLFontElement

§

impl DerivedFrom<EventTarget> for HTMLFormElement

§

impl DerivedFrom<EventTarget> for HTMLFrameElement

§

impl DerivedFrom<EventTarget> for HTMLFrameSetElement

§

impl DerivedFrom<EventTarget> for HTMLHRElement

§

impl DerivedFrom<EventTarget> for HTMLHeadElement

§

impl DerivedFrom<EventTarget> for HTMLHeadingElement

§

impl DerivedFrom<EventTarget> for HTMLHtmlElement

§

impl DerivedFrom<EventTarget> for HTMLIFrameElement

§

impl DerivedFrom<EventTarget> for HTMLImageElement

§

impl DerivedFrom<EventTarget> for HTMLInputElement

§

impl DerivedFrom<EventTarget> for HTMLLIElement

§

impl DerivedFrom<EventTarget> for HTMLLabelElement

§

impl DerivedFrom<EventTarget> for HTMLLegendElement

§

impl DerivedFrom<EventTarget> for HTMLLinkElement

§

impl DerivedFrom<EventTarget> for HTMLMapElement

§

impl DerivedFrom<EventTarget> for HTMLMediaElement

§

impl DerivedFrom<EventTarget> for HTMLMenuElement

§

impl DerivedFrom<EventTarget> for HTMLMetaElement

§

impl DerivedFrom<EventTarget> for HTMLMeterElement

§

impl DerivedFrom<EventTarget> for HTMLModElement

§

impl DerivedFrom<EventTarget> for HTMLOListElement

§

impl DerivedFrom<EventTarget> for HTMLObjectElement

§

impl DerivedFrom<EventTarget> for HTMLOptGroupElement

§

impl DerivedFrom<EventTarget> for HTMLOptionElement

§

impl DerivedFrom<EventTarget> for HTMLOutputElement

§

impl DerivedFrom<EventTarget> for HTMLParagraphElement

§

impl DerivedFrom<EventTarget> for HTMLParamElement

§

impl DerivedFrom<EventTarget> for HTMLPictureElement

§

impl DerivedFrom<EventTarget> for HTMLPreElement

§

impl DerivedFrom<EventTarget> for HTMLProgressElement

§

impl DerivedFrom<EventTarget> for HTMLQuoteElement

§

impl DerivedFrom<EventTarget> for HTMLScriptElement

§

impl DerivedFrom<EventTarget> for HTMLSelectElement

§

impl DerivedFrom<EventTarget> for HTMLSlotElement

§

impl DerivedFrom<EventTarget> for HTMLSourceElement

§

impl DerivedFrom<EventTarget> for HTMLSpanElement

§

impl DerivedFrom<EventTarget> for HTMLStyleElement

§

impl DerivedFrom<EventTarget> for HTMLTableCaptionElement

§

impl DerivedFrom<EventTarget> for HTMLTableCellElement

§

impl DerivedFrom<EventTarget> for HTMLTableColElement

§

impl DerivedFrom<EventTarget> for HTMLTableElement

§

impl DerivedFrom<EventTarget> for HTMLTableRowElement

§

impl DerivedFrom<EventTarget> for HTMLTableSectionElement

§

impl DerivedFrom<EventTarget> for HTMLTemplateElement

§

impl DerivedFrom<EventTarget> for HTMLTextAreaElement

§

impl DerivedFrom<EventTarget> for HTMLTimeElement

§

impl DerivedFrom<EventTarget> for HTMLTitleElement

§

impl DerivedFrom<EventTarget> for HTMLTrackElement

§

impl DerivedFrom<EventTarget> for HTMLUListElement

§

impl DerivedFrom<EventTarget> for HTMLUnknownElement

§

impl DerivedFrom<EventTarget> for HTMLVideoElement

§

impl DerivedFrom<EventTarget> for IIRFilterNode

§

impl DerivedFrom<EventTarget> for MediaDevices

§

impl DerivedFrom<EventTarget> for MediaElementAudioSourceNode

§

impl DerivedFrom<EventTarget> for MediaQueryList

§

impl DerivedFrom<EventTarget> for MediaStream

§

impl DerivedFrom<EventTarget> for MediaStreamAudioDestinationNode

§

impl DerivedFrom<EventTarget> for MediaStreamAudioSourceNode

§

impl DerivedFrom<EventTarget> for MediaStreamTrack

§

impl DerivedFrom<EventTarget> for MediaStreamTrackAudioSourceNode

§

impl DerivedFrom<EventTarget> for MessagePort

§

impl DerivedFrom<EventTarget> for Node

§

impl DerivedFrom<EventTarget> for Notification

§

impl DerivedFrom<EventTarget> for OfflineAudioContext

§

impl DerivedFrom<EventTarget> for OffscreenCanvas

§

impl DerivedFrom<EventTarget> for OscillatorNode

§

impl DerivedFrom<EventTarget> for PaintWorkletGlobalScope

§

impl DerivedFrom<EventTarget> for PannerNode

§

impl DerivedFrom<EventTarget> for Performance

§

impl DerivedFrom<EventTarget> for PermissionStatus

§

impl DerivedFrom<EventTarget> for ProcessingInstruction

§

impl DerivedFrom<EventTarget> for RTCDataChannel

§

impl DerivedFrom<EventTarget> for RTCPeerConnection

§

impl DerivedFrom<EventTarget> for SVGElement

§

impl DerivedFrom<EventTarget> for SVGGraphicsElement

§

impl DerivedFrom<EventTarget> for SVGSVGElement

§

impl DerivedFrom<EventTarget> for ServiceWorker

§

impl DerivedFrom<EventTarget> for ServiceWorkerContainer

§

impl DerivedFrom<EventTarget> for ServiceWorkerGlobalScope

§

impl DerivedFrom<EventTarget> for ServiceWorkerRegistration

§

impl DerivedFrom<EventTarget> for ShadowRoot

§

impl DerivedFrom<EventTarget> for StereoPannerNode

§

impl DerivedFrom<EventTarget> for TestWorkletGlobalScope

§

impl DerivedFrom<EventTarget> for Text

§

impl DerivedFrom<EventTarget> for TextTrack

§

impl DerivedFrom<EventTarget> for TextTrackCue

§

impl DerivedFrom<EventTarget> for TextTrackList

§

impl DerivedFrom<EventTarget> for VTTCue

§

impl DerivedFrom<EventTarget> for VideoTrackList

§

impl DerivedFrom<EventTarget> for WebSocket

§

impl DerivedFrom<EventTarget> for Window

§

impl DerivedFrom<EventTarget> for Worker

§

impl DerivedFrom<EventTarget> for WorkerGlobalScope

§

impl DerivedFrom<EventTarget> for WorkletGlobalScope

§

impl DerivedFrom<EventTarget> for XMLDocument

§

impl DerivedFrom<EventTarget> for XMLHttpRequest

§

impl DerivedFrom<EventTarget> for XMLHttpRequestEventTarget

§

impl DerivedFrom<EventTarget> for XMLHttpRequestUpload

§

impl DerivedFrom<EventTarget> for XRBoundedReferenceSpace

§

impl DerivedFrom<EventTarget> for XRCompositionLayer

§

impl DerivedFrom<EventTarget> for XRCubeLayer

§

impl DerivedFrom<EventTarget> for XRCylinderLayer

§

impl DerivedFrom<EventTarget> for XREquirectLayer

§

impl DerivedFrom<EventTarget> for XRJointSpace

§

impl DerivedFrom<EventTarget> for XRLayer

§

impl DerivedFrom<EventTarget> for XRProjectionLayer

§

impl DerivedFrom<EventTarget> for XRQuadLayer

§

impl DerivedFrom<EventTarget> for XRReferenceSpace

§

impl DerivedFrom<EventTarget> for XRSession

§

impl DerivedFrom<EventTarget> for XRSpace

§

impl DerivedFrom<EventTarget> for XRSystem

§

impl DerivedFrom<EventTarget> for XRWebGLLayer

Source§

impl Eq for EventTarget

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

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<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

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<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> 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