Struct Dom

pub struct Dom;
Expand description

A Renderer that uses web-sys to manipulate DOM elements in the browser.

Implementationsยง

ยง

impl Dom

pub fn intern(text: &str) -> &str

pub fn create_element(tag: &str, namespace: Option<&str>) -> Element

pub fn create_text_node(text: &str) -> Text

pub fn create_placeholder() -> Comment

pub fn set_text(node: &Text, text: &str)

pub fn set_attribute(node: &Element, name: &str, value: &str)

pub fn remove_attribute(node: &Element, name: &str)

pub fn insert_node(parent: &Element, new_child: &Node, anchor: Option<&Node>)

pub fn try_insert_node( parent: &Element, new_child: &Node, anchor: Option<&Node>, ) -> bool

pub fn remove_node(parent: &Element, child: &Node) -> Option<Node>

pub fn remove(node: &Node)

pub fn get_parent(node: &Node) -> Option<Node>

pub fn first_child(node: &Node) -> Option<Node>

pub fn next_sibling(node: &Node) -> Option<Node>

pub fn log_node(node: &Node)

pub fn clear_children(parent: &Element)

pub fn mount_before<M>(new_child: &mut M, before: &Node)
where M: Mountable,

Mounts the new child before the marker as its sibling.

ยงPanics

The default implementation panics if before does not have a parent [crate::renderer::types::Element].

pub fn try_mount_before<M>(new_child: &mut M, before: &Node) -> bool
where M: Mountable,

Tries to mount the new child before the marker as its sibling.

Returns false if the child did not have a valid parent.

pub fn set_property(el: &Element, key: &str, value: &JsValue)

pub fn add_event_listener( el: &Element, name: &str, cb: Box<dyn FnMut(JsValue)>, ) -> RemoveEventHandler<Element>

pub fn add_event_listener_use_capture( el: &Element, name: &str, cb: Box<dyn FnMut(JsValue)>, ) -> RemoveEventHandler<Element>

pub fn event_target<T>(ev: &JsValue) -> T
where T: CastFrom<Element>,

pub fn add_event_listener_delegated( el: &Element, name: Cow<'static, str>, delegation_key: Cow<'static, str>, cb: Box<dyn FnMut(JsValue)>, ) -> RemoveEventHandler<Element>

pub fn class_list(el: &Element) -> DomTokenList

pub fn add_class(list: &DomTokenList, name: &str)

pub fn remove_class(list: &DomTokenList, name: &str)

pub fn style(el: &Element) -> CssStyleDeclaration

pub fn set_css_property(style: &CssStyleDeclaration, name: &str, value: &str)

pub fn remove_css_property(style: &CssStyleDeclaration, name: &str)

pub fn set_inner_html(el: &Element, html: &str)

pub fn get_template<V>() -> HtmlTemplateElement
where V: ToTemplate + 'static,

pub fn clone_template(tpl: &HtmlTemplateElement) -> Element

pub fn create_element_from_html(html: Cow<'static, str>) -> Element

pub fn create_svg_element_from_html(html: Cow<'static, str>) -> Element

Trait Implementationsยง

ยง

impl<El, At, Ch, V> AriaAttributes<Dom, V> for HtmlElement<El, At, Ch>
where El: ElementType + Send, At: Attribute + Send, Ch: RenderHtml + Send, V: AttributeValue,

ยง

fn aria_activedescendant( self, value: V, ) -> Self::Output<Attr<AriaActivedescendant, V>>

Identifies the currently active descendant of a composite widget.
ยง

fn aria_atomic(self, value: V) -> Self::Output<Attr<AriaAtomic, V>>

Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
ยง

fn aria_autocomplete(self, value: V) -> Self::Output<Attr<AriaAutocomplete, V>>

Indicates whether user input completion suggestions are provided.
ยง

fn aria_busy(self, value: V) -> Self::Output<Attr<AriaBusy, V>>

Indicates whether an element, and its subtree, are currently being updated.
ยง

fn aria_checked(self, value: V) -> Self::Output<Attr<AriaChecked, V>>

Indicates the current โ€œcheckedโ€ state of checkboxes, radio buttons, and other widgets.
ยง

fn aria_colcount(self, value: V) -> Self::Output<Attr<AriaColcount, V>>

Defines the number of columns in a table, grid, or treegrid.
ยง

fn aria_colindex(self, value: V) -> Self::Output<Attr<AriaColindex, V>>

Defines an elementโ€™s column index or position with respect to the total number of columns within a table, grid, or treegrid.
ยง

fn aria_colspan(self, value: V) -> Self::Output<Attr<AriaColspan, V>>

Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
ยง

fn aria_controls(self, value: V) -> Self::Output<Attr<AriaControls, V>>

Identifies the element (or elements) whose contents or presence are controlled by the current element.
ยง

fn aria_current(self, value: V) -> Self::Output<Attr<AriaCurrent, V>>

Indicates the element that represents the current item within a container or set of related elements.
ยง

fn aria_describedby(self, value: V) -> Self::Output<Attr<AriaDescribedby, V>>

Identifies the element (or elements) that describes the object.
ยง

fn aria_description(self, value: V) -> Self::Output<Attr<AriaDescription, V>>

Defines a string value that describes or annotates the current element.
ยง

fn aria_details(self, value: V) -> Self::Output<Attr<AriaDetails, V>>

Identifies the element that provides additional information related to the object.
ยง

fn aria_disabled(self, value: V) -> Self::Output<Attr<AriaDisabled, V>>

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
ยง

fn aria_dropeffect(self, value: V) -> Self::Output<Attr<AriaDropeffect, V>>

Indicates what functions can be performed when a dragged object is released on the drop target.
ยง

fn aria_errormessage(self, value: V) -> Self::Output<Attr<AriaErrormessage, V>>

Defines the element that provides an error message related to the object.
ยง

fn aria_expanded(self, value: V) -> Self::Output<Attr<AriaExpanded, V>>

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
ยง

fn aria_flowto(self, value: V) -> Self::Output<Attr<AriaFlowto, V>>

Identifies the next element (or elements) in an alternate reading order of content.
ยง

fn aria_grabbed(self, value: V) -> Self::Output<Attr<AriaGrabbed, V>>

Indicates an elementโ€™s โ€œgrabbedโ€ state in a drag-and-drop operation.
ยง

fn aria_haspopup(self, value: V) -> Self::Output<Attr<AriaHaspopup, V>>

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
ยง

fn aria_hidden(self, value: V) -> Self::Output<Attr<AriaHidden, V>>

Indicates whether the element is exposed to an accessibility API.
ยง

fn aria_invalid(self, value: V) -> Self::Output<Attr<AriaInvalid, V>>

Indicates the entered value does not conform to the format expected by the application.
ยง

fn aria_keyshortcuts(self, value: V) -> Self::Output<Attr<AriaKeyshortcuts, V>>

Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
ยง

fn aria_label(self, value: V) -> Self::Output<Attr<AriaLabel, V>>

Defines a string value that labels the current element.
ยง

fn aria_labelledby(self, value: V) -> Self::Output<Attr<AriaLabelledby, V>>

Identifies the element (or elements) that labels the current element.
ยง

fn aria_live(self, value: V) -> Self::Output<Attr<AriaLive, V>>

Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
ยง

fn aria_modal(self, value: V) -> Self::Output<Attr<AriaModal, V>>

Indicates whether an element is modal when displayed.
ยง

fn aria_multiline(self, value: V) -> Self::Output<Attr<AriaMultiline, V>>

Indicates whether a text box accepts multiple lines of input or only a single line.
ยง

fn aria_multiselectable( self, value: V, ) -> Self::Output<Attr<AriaMultiselectable, V>>

Indicates that the user may select more than one item from the current selectable descendants.
ยง

fn aria_orientation(self, value: V) -> Self::Output<Attr<AriaOrientation, V>>

Indicates whether the elementโ€™s orientation is horizontal, vertical, or undefined.
ยง

fn aria_owns(self, value: V) -> Self::Output<Attr<AriaOwns, V>>

Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
ยง

fn aria_placeholder(self, value: V) -> Self::Output<Attr<AriaPlaceholder, V>>

Defines a short hint (a word or short phrase) intended to help the user with data entry when the control has no value.
ยง

fn aria_posinset(self, value: V) -> Self::Output<Attr<AriaPosinset, V>>

Defines an elementโ€™s number or position in the current set of listitems or treeitems.
ยง

fn aria_pressed(self, value: V) -> Self::Output<Attr<AriaPressed, V>>

Indicates the current โ€œpressedโ€ state of toggle buttons.
ยง

fn aria_readonly(self, value: V) -> Self::Output<Attr<AriaReadonly, V>>

Indicates that the element is not editable, but is otherwise operable.
ยง

fn aria_relevant(self, value: V) -> Self::Output<Attr<AriaRelevant, V>>

Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
ยง

fn aria_required(self, value: V) -> Self::Output<Attr<AriaRequired, V>>

Indicates that user input is required on the element before a form may be submitted.
ยง

fn aria_roledescription( self, value: V, ) -> Self::Output<Attr<AriaRoledescription, V>>

Defines a human-readable, author-localized description for the role of an element.
ยง

fn aria_rowcount(self, value: V) -> Self::Output<Attr<AriaRowcount, V>>

Defines the total number of rows in a table, grid, or treegrid.
ยง

fn aria_rowindex(self, value: V) -> Self::Output<Attr<AriaRowindex, V>>

Defines an elementโ€™s row index or position with respect to the total number of rows within a table, grid, or treegrid.
ยง

fn aria_rowspan(self, value: V) -> Self::Output<Attr<AriaRowspan, V>>

Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
ยง

fn aria_selected(self, value: V) -> Self::Output<Attr<AriaSelected, V>>

Indicates the current โ€œselectedโ€ state of various widgets.
ยง

fn aria_setsize(self, value: V) -> Self::Output<Attr<AriaSetsize, V>>

Defines the number of items in the current set of listitems or treeitems.
ยง

fn aria_sort(self, value: V) -> Self::Output<Attr<AriaSort, V>>

Indicates if items in a table or grid are sorted in ascending or descending order.
ยง

fn aria_valuemax(self, value: V) -> Self::Output<Attr<AriaValuemax, V>>

Defines the maximum allowed value for a range widget.
ยง

fn aria_valuemin(self, value: V) -> Self::Output<Attr<AriaValuemin, V>>

Defines the minimum allowed value for a range widget.
ยง

fn aria_valuenow(self, value: V) -> Self::Output<Attr<AriaValuenow, V>>

Defines the current value for a range widget.
ยง

fn aria_valuetext(self, value: V) -> Self::Output<Attr<AriaValuetext, V>>

Defines the human-readable text alternative of aria-valuenow for a range widget.
ยง

impl Clone for Dom

ยง

fn clone(&self) -> Dom

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

impl Debug for Dom

ยง

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

Formats the value using the given formatter. Read more
ยง

impl Hash for Dom

ยง

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

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

impl Ord for Dom

ยง

fn cmp(&self, other: &Dom) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 ยท Sourceยง

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 ยท Sourceยง

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 ยท Sourceยง

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
ยง

impl PartialEq for Dom

ยง

fn eq(&self, other: &Dom) -> 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.
ยง

impl PartialOrd for Dom

ยง

fn partial_cmp(&self, other: &Dom) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท Sourceยง

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 ยท Sourceยง

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 ยท Sourceยง

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 ยท Sourceยง

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
ยง

impl Copy for Dom

ยง

impl Eq for Dom

ยง

impl StructuralPartialEq for Dom

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, D: AdaptFrom<S, Swp, Dwp, T>,

Sourceยง

fn adapt_into_using<M>(self, method: M) -> D
where M: TransformMatrix<T>,

Convert the source color to the destination color using the specified method.
Sourceยง

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default.
Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
ยง

impl<T> ArchivePointee for T

ยง

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
ยง

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Sourceยง

impl<T, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

Sourceยง

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
Sourceยง

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

Sourceยง

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
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
ยง

impl<T> CallHasher for T
where T: Hash + ?Sized,

ยง

default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64
where H: Hash + ?Sized, B: BuildHasher,

Sourceยง

impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

Sourceยง

type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar

The number type thatโ€™s used in parameters when converting.
Sourceยง

fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
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
ยง

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

ยง

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Sourceยง

impl<T, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

Sourceยง

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
ยง

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

ยง

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
ยง

impl<T> Downcast for T
where T: Any,

ยง

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

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
ยง

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

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
ยง

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

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Anyโ€™s vtable from &Traitโ€™s.
ยง

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

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Anyโ€™s vtable from &mut Traitโ€™s.
ยง

impl<T> DowncastSend for T
where T: Any + Send,

ยง

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
ยง

impl<T> DowncastSync for T
where T: Any + Send + Sync,

ยง

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
ยง

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
ยง

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

ยง

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

Checks if this value is equivalent to the given key. Read more
ยง

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

ยง

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

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

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T> FromAngle<T> for T

Sourceยง

fn from_angle(angle: T) -> T

Performs a conversion from angle.
ยง

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

ยง

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
ยง

impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
ยง

impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
ยง

impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
ยง

impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
ยง

impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
ยง

impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

ยง

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
Sourceยง

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

Sourceยง

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
ยง

impl<T> Instrument for T

ยง

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

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
ยง

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, U> IntoAngle<U> for T
where U: FromAngle<T>,

Sourceยง

fn into_angle(self) -> U

Performs a conversion into T.
Sourceยง

impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for U
where T: Cam16FromUnclamped<WpParam, U>,

Sourceยง

type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar

The number type thatโ€™s used in parameters when converting.
Sourceยง

fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Sourceยง

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

Sourceยง

fn into_color(self) -> U

Convert into T with values clamped to the color defined bounds Read more
Sourceยง

impl<T, U> IntoColorUnclamped<U> for T
where U: FromColorUnclamped<T>,

Sourceยง

fn into_color_unclamped(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
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
ยง

impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

ยง

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
ยง

impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

ยง

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
ยง

impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

ยง

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
ยง

impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

ยง

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
ยง

impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

ยง

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
ยง

impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

ยง

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
Sourceยง

impl<T> IntoStimulus<T> for T

Sourceยง

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
ยง

impl<T> Pointable for T

ยง

const ALIGN: usize

The alignment of pointer.
ยง

type Init = T

The type for initializers.
ยง

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

Initializes a with the given initializer. Read more
ยง

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

Dereferences the given pointer. Read more
ยง

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

Mutably dereferences the given pointer. Read more
ยง

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
ยง

impl<T> Pointee for T

ยง

type Metadata = ()

The type for metadata in pointers and references to Self.
ยง

impl<T> PolicyExt for T
where T: ?Sized,

ยง

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
ยง

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
ยง

impl<T> SerializableKey for T

ยง

fn ser_key(&self) -> String

Serializes the key to a unique string. Read more
ยง

impl<T> StorageAccess<T> for T

ยง

fn as_borrowed(&self) -> &T

Borrows the value.
ยง

fn into_taken(self) -> T

Takes the value.
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, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

Sourceยง

type Error = <C as TryFromComponents<T>>::Error

The error for when try_into_colors fails to cast.
Sourceยง

fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>

Try to cast this collection of color components into a collection of colors. Read more
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, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

Sourceยง

fn try_into_color(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
Sourceยง

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

Sourceยง

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
Sourceยง

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

Sourceยง

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
ยง

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

ยง

fn vzip(self) -> V

ยง

impl<T> WithSubscriber for T

ยง

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

fn with_current_subscriber(self) -> WithDispatch<Self> โ“˜

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
ยง

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

ยง

impl<T> Fruit for T
where T: Send + Downcast,