Struct Exclusive

Source
#[repr(transparent)]
pub struct Exclusive<T>
where T: ?Sized,
{ inner: T, }
๐Ÿ”ฌThis is a nightly-only experimental API. (exclusive_wrapper)
Expand description

Exclusive provides only mutable access, also referred to as exclusive access to the underlying value. It provides no immutable, or shared access to the underlying value.

While this may seem not very useful, it allows Exclusive to unconditionally implement Sync. Indeed, the safety requirements of Sync state that for Exclusive to be Sync, it must be sound to share across threads, that is, it must be sound for &Exclusive to cross thread boundaries. By design, a &Exclusive has no API whatsoever, making it useless, thus harmless, thus memory safe.

Certain constructs like Futures can only be used with exclusive access, and are often Send but not Sync, so Exclusive can be used as hint to the Rust compiler that something is Sync in practice.

ยงExamples

Using a non-Sync future prevents the wrapping struct from being Sync

โ“˜
use core::cell::Cell;

async fn other() {}
fn assert_sync<T: Sync>(t: T) {}
struct State<F> {
    future: F
}

assert_sync(State {
    future: async {
        let cell = Cell::new(1);
        let cell_ref = &cell;
        other().await;
        let value = cell_ref.get();
    }
});

Exclusive ensures the struct is Sync without stripping the future of its functionality.

#![feature(exclusive_wrapper)]
use core::cell::Cell;
use core::sync::Exclusive;

async fn other() {}
fn assert_sync<T: Sync>(t: T) {}
struct State<F> {
    future: Exclusive<F>
}

assert_sync(State {
    future: Exclusive::new(async {
        let cell = Cell::new(1);
        let cell_ref = &cell;
        other().await;
        let value = cell_ref.get();
    })
});

ยงParallels with a mutex

In some sense, Exclusive can be thought of as a compile-time version of a mutex, as the borrow-checker guarantees that only one &mut can exist for any value. This is a parallel with the fact that & and &mut references together can be thought of as a compile-time version of a read-write lock.

Fieldsยง

ยงinner: T
๐Ÿ”ฌThis is a nightly-only experimental API. (exclusive_wrapper)

Implementationsยง

Sourceยง

impl<T> Exclusive<T>

Source

pub const fn new(t: T) -> Exclusive<T> โ“˜

๐Ÿ”ฌThis is a nightly-only experimental API. (exclusive_wrapper)

Wrap a value in an Exclusive

Source

pub const fn into_inner(self) -> T

๐Ÿ”ฌThis is a nightly-only experimental API. (exclusive_wrapper)

Unwrap the value contained in the Exclusive

Sourceยง

impl<T> Exclusive<T>
where T: ?Sized,

Source

pub const fn get_mut(&mut self) -> &mut T

๐Ÿ”ฌThis is a nightly-only experimental API. (exclusive_wrapper)

Gets exclusive access to the underlying value.

Source

pub const fn get_pin_mut(self: Pin<&mut Exclusive<T>>) -> Pin<&mut T>

๐Ÿ”ฌThis is a nightly-only experimental API. (exclusive_wrapper)

Gets pinned exclusive access to the underlying value.

Exclusive is considered to structurally pin the underlying value, which means unpinned Exclusives can produce unpinned access to the underlying value, but pinned Exclusives only produce pinned access to the underlying value.

Source

pub const fn from_mut(r: &mut T) -> &mut Exclusive<T> โ“˜

๐Ÿ”ฌThis is a nightly-only experimental API. (exclusive_wrapper)

Build a mutable reference to an Exclusive<T> from a mutable reference to a T. This allows you to skip building an Exclusive with Exclusive::new.

Source

pub const fn from_pin_mut(r: Pin<&mut T>) -> Pin<&mut Exclusive<T>>

๐Ÿ”ฌThis is a nightly-only experimental API. (exclusive_wrapper)

Build a pinned mutable reference to an Exclusive<T> from a pinned mutable reference to a T. This allows you to skip building an Exclusive with Exclusive::new.

Trait Implementationsยง

Sourceยง

impl<R, G> Coroutine<R> for Exclusive<G>
where G: Coroutine<R> + ?Sized,

Sourceยง

type Yield = <G as Coroutine<R>>::Yield

๐Ÿ”ฌThis is a nightly-only experimental API. (coroutine_trait)
The type of value this coroutine yields. Read more
Sourceยง

type Return = <G as Coroutine<R>>::Return

๐Ÿ”ฌThis is a nightly-only experimental API. (coroutine_trait)
The type of value this coroutine returns. Read more
Sourceยง

fn resume( self: Pin<&mut Exclusive<G>>, arg: R, ) -> CoroutineState<<Exclusive<G> as Coroutine<R>>::Yield, <Exclusive<G> as Coroutine<R>>::Return>

๐Ÿ”ฌThis is a nightly-only experimental API. (coroutine_trait)
Resumes the execution of this coroutine. Read more
Sourceยง

impl<T> Debug for Exclusive<T>
where T: ?Sized,

Sourceยง

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

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

impl<T> Default for Exclusive<T>
where T: Default + ?Sized,

Sourceยง

fn default() -> Exclusive<T> โ“˜

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl<F, Args> FnMut<Args> for Exclusive<F>
where F: FnMut<Args>, Args: Tuple,

Sourceยง

extern "rust-call" fn call_mut( &mut self, args: Args, ) -> <Exclusive<F> as FnOnce<Args>>::Output โ“˜

๐Ÿ”ฌThis is a nightly-only experimental API. (fn_traits)
Performs the call operation.
Sourceยง

impl<F, Args> FnOnce<Args> for Exclusive<F>
where F: FnOnce<Args>, Args: Tuple,

Sourceยง

type Output = <F as FnOnce<Args>>::Output

The returned type after the call operator is used.
Sourceยง

extern "rust-call" fn call_once( self, args: Args, ) -> <Exclusive<F> as FnOnce<Args>>::Output โ“˜

๐Ÿ”ฌThis is a nightly-only experimental API. (fn_traits)
Performs the call operation.
Sourceยง

impl<T> From<T> for Exclusive<T>

Sourceยง

fn from(t: T) -> Exclusive<T> โ“˜

Converts to this type from the input type.
Sourceยง

impl<T> Future for Exclusive<T>
where T: Future + ?Sized,

Sourceยง

type Output = <T as Future>::Output

The type of value produced on completion.
Sourceยง

fn poll( self: Pin<&mut Exclusive<T>>, cx: &mut Context<'_>, ) -> Poll<<Exclusive<T> as Future>::Output>

Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
Sourceยง

impl<T> Sync for Exclusive<T>
where T: ?Sized,

Auto Trait Implementationsยง

ยง

impl<T> Freeze for Exclusive<T>
where T: Freeze + ?Sized,

ยง

impl<T> RefUnwindSafe for Exclusive<T>
where T: RefUnwindSafe + ?Sized,

ยง

impl<T> Send for Exclusive<T>
where T: Send + ?Sized,

ยง

impl<T> Unpin for Exclusive<T>
where T: Unpin + ?Sized,

ยง

impl<T> UnwindSafe for Exclusive<T>
where T: UnwindSafe + ?Sized,

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

impl<F, V> AddAnyAttr for F
where F: ReactiveFunction<Output = V>, V: RenderHtml + 'static,

ยง

type Output<SomeNewAttr: Attribute> = Box<dyn FnMut() -> <V as AddAnyAttr>::Output<<SomeNewAttr as Attribute>::CloneableOwned> + Send>

The new type once the attribute has been added.
ยง

fn add_any_attr<NewAttr>( self, attr: NewAttr, ) -> <F as AddAnyAttr>::Output<NewAttr>
where NewAttr: Attribute, <F as AddAnyAttr>::Output<NewAttr>: RenderHtml,

Adds an attribute to the view.
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.
ยง

impl<F, V> AttributeValue for F
where F: ReactiveFunction<Output = V>, V: AttributeValue + 'static, <V as AttributeValue>::State: 'static,

ยง

type AsyncOutput = <V as AttributeValue>::AsyncOutput

The type once all async data have loaded.
ยง

type State = RenderEffect<<V as AttributeValue>::State>

The state that should be retained between building and rebuilding.
ยง

type Cloneable = Arc<Mutex<dyn FnMut() -> V + Send>>

A version of the value that can be cloned. This can be the same type, or a reference-counted type. Generally speaking, this does not need to refer to the same data, but should behave in the same way. So for example, making an event handler cloneable should probably make it reference-counted (so that a FnMut() continues mutating the same closure), but making a String cloneable does not necessarily need to make it an Arc<str>, as two different clones of a String will still have the same value.
ยง

type CloneableOwned = Arc<Mutex<dyn FnMut() -> V + Send>>

A cloneable type that is also 'static. This is used for spreading across types when the spreadable attribute needs to be owned. In some cases (&'a str to Arc<str>, etc.) the owned cloneable type has worse performance than the cloneable type, so they are separate.
ยง

fn html_len(&self) -> usize

An approximation of the actual length of this attribute in HTML.
ยง

fn to_html(self, key: &str, buf: &mut String)

Renders the attribute value to HTML.
ยง

fn to_template(_key: &str, _buf: &mut String)

Renders the attribute value to HTML for a <template>.
ยง

fn hydrate<const FROM_SERVER: bool>( self, key: &str, el: &Element, ) -> <F as AttributeValue>::State

Adds interactivity as necessary, given DOM nodes that were created from HTML that has either been rendered on the server, or cloned for a <template>.
ยง

fn build(self, el: &Element, key: &str) -> <F as AttributeValue>::State

Adds this attribute to the element during client-side rendering.
ยง

fn rebuild(self, key: &str, state: &mut <F as AttributeValue>::State)

Applies a new value for the attribute.
ยง

fn into_cloneable(self) -> <F as AttributeValue>::Cloneable

Converts this attribute into an equivalent that can be cloned.
ยง

fn into_cloneable_owned(self) -> <F as AttributeValue>::CloneableOwned

Converts this attributes into an equivalent that can be cloned and is 'static.
ยง

fn dry_resolve(&mut self)

โ€œRunsโ€ the attribute without other side effects. For primitive types, this is a no-op. For reactive types, this can be used to gather data about reactivity or about asynchronous data that needs to be loaded.
ยง

async fn resolve(self) -> <F as AttributeValue>::AsyncOutput

โ€œResolvesโ€ this into a form that is not waiting for any asynchronous data.
ยง

impl<V, Key, Sig, T> BindAttribute<Key, Sig, T> for V
where V: AddAnyAttr, Key: AttributeKey, Sig: IntoSplitSignal<Value = T>, T: FromEventTarget + AttributeValue + PartialEq + Sync + 'static, Signal<BoolOrT<T>>: IntoProperty, <Sig as IntoSplitSignal>::Read: Get<Value = T> + Send + Sync + Clone + 'static, <Sig as IntoSplitSignal>::Write: Send + Clone + 'static, Element: GetValue<T>,

ยง

type Output = <V as AddAnyAttr>::Output<Bind<Key, T, <Sig as IntoSplitSignal>::Read, <Sig as IntoSplitSignal>::Write>>

The type of the element with the two-way binding added.
ยง

fn bind( self, key: Key, signal: Sig, ) -> <V as BindAttribute<Key, Sig, T>>::Output

Adds a two-way binding to the element, which adds an attribute and an event listener to the element when the element is created or hydrated. Read more
Sourceยง

impl<C, F> BlendFunction<C> for F
where C: Premultiply, F: FnOnce(PreAlpha<C>, PreAlpha<C>) -> PreAlpha<C>,

Sourceยง

fn apply_to(self, source: PreAlpha<C>, destination: PreAlpha<C>) -> PreAlpha<C>

Apply this blend function to a pair 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<F> Callback for F

ยง

fn on_request( self, request: &Request<()>, response: Response<()>, ) -> Result<Response<()>, Response<Option<String>>>

Called whenever the server read the request from the client and is ready to reply to it. May return additional reply headers. Returning an error resulting in rejecting the incoming connection.
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.
ยง

impl<Func, T> ComponentConstructor<(), T> for Func
where Func: FnOnce() -> T,

ยง

fn construct(self, _: ()) -> T

ยง

impl<Func, T, P> ComponentConstructor<P, T> for Func
where Func: FnOnce(P) -> T, P: PropsOrNoPropsBuilder,

ยง

fn construct(self, props: P) -> T

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<T, K, V> CustomAttribute<K, V> for T
where T: AddAnyAttr, K: CustomAttributeKey, V: AttributeValue,

ยง

fn attr(self, key: K, value: V) -> Self::Output<CustomAttr<K, V>>

Adds an HTML attribute by key and value.
ยง

impl<F, TScore> CustomSegmentScorer<TScore> for F
where F: 'static + FnMut(u32) -> TScore,

ยง

fn score(&mut self, doc: u32) -> TScore

Computes the score of a specific doc.
ยง

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<V, T, P, D> DirectiveAttribute<T, P, D> for V
where V: AddAnyAttr, D: IntoDirective<T, P>, P: Clone + 'static, T: 'static,

ยง

type Output = <V as AddAnyAttr>::Output<Directive<T, D, P>>

The type of the element with the directive added.
ยง

fn directive( self, handler: D, param: P, ) -> <V as DirectiveAttribute<T, P, D>>::Output

Adds a directive to the element, which runs some custom logic in the browser when the element is created or hydrated.
ยง

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<Func> EffectFunction<(), NoParam> for Func
where Func: FnMut(),

ยง

fn run(&mut self, _: Option<()>)

Call this to execute the function. In case the actual function has no parameters the parameter p will simply be ignored.
ยง

impl<Func, T> EffectFunction<T, SingleParam> for Func
where Func: FnMut(Option<T>) -> T,

ยง

fn run(&mut self, p: Option<T>) -> T

Call this to execute the function. In case the actual function has no parameters the parameter p will simply be ignored.
ยง

impl<F> ErrorSink for F
where F: FnMut(ParseError),

ยง

fn report_error(&mut self, error: ParseError)

ยง

impl<F, E> EventCallback<E> for F
where F: FnMut(E) + 'static,

ยง

fn invoke(&mut self, event: E)

Runs the event handler.
ยง

fn into_shared(self) -> Rc<RefCell<dyn FnMut(E)>>

Converts this into a cloneable/shared event handler.
ยง

impl<F> EventReceiver for F
where F: FnMut(Event),

ยง

fn std_table_open(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn std_table_close(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn array_table_open(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn array_table_close(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn inline_table_open(&mut self, span: Span, _error: &mut dyn ErrorSink) -> bool

Returns if entering the inline table is allowed
ยง

fn inline_table_close(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn array_open(&mut self, span: Span, _error: &mut dyn ErrorSink) -> bool

Returns if entering the array is allowed
ยง

fn array_close(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn simple_key( &mut self, span: Span, encoding: Option<Encoding>, _error: &mut dyn ErrorSink, )

ยง

fn key_sep(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn key_val_sep(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn scalar( &mut self, span: Span, encoding: Option<Encoding>, _error: &mut dyn ErrorSink, )

ยง

fn value_sep(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn whitespace(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn comment(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn newline(&mut self, span: Span, _error: &mut dyn ErrorSink)

ยง

fn error(&mut self, span: Span, _error: &mut dyn ErrorSink)

Sourceยง

impl<T> From<!> for T

Sourceยง

fn from(t: !) -> T

Converts to this type from the input type.
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<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, T, Request> FromReq<Streaming, Request, E> for T
where Request: Req<E> + Send + 'static, T: From<ByteStream<E>> + 'static, E: FromServerFnError,

ยง

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

Attempts to deserialize the arguments from a request.
ยง

impl<E, T, Request> FromReq<StreamingText, Request, E> for T
where Request: Req<E> + Send + 'static, T: From<TextStream<E>> + 'static, 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<S, T> FromStream<T> for S
where S: From<ArcReadSignal<Option<T>>> + Send + Sync, T: Send + Sync + 'static,

ยง

fn from_stream(stream: impl Stream<Item = T> + Send + 'static) -> S

Creates a signal that contains the latest value of the stream.
ยง

fn from_stream_unsync(stream: impl Stream<Item = T> + 'static) -> S

Creates a signal that contains the latest value of the stream.
ยง

impl<T> FutureExt for T
where T: Future + ?Sized,

ยง

fn map<U, F>(self, f: F) -> Map<Self, F> โ“˜
where F: FnOnce(Self::Output) -> U, Self: Sized,

Map this futureโ€™s output to a different type, returning a new future of the resulting type. Read more
ยง

fn map_into<U>(self) -> MapInto<Self, U> โ“˜
where Self::Output: Into<U>, Self: Sized,

Map this futureโ€™s output to a different type, returning a new future of the resulting type. Read more
ยง

fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F> โ“˜
where F: FnOnce(Self::Output) -> Fut, Fut: Future, Self: Sized,

Chain on a computation for when a future finished, passing the result of the future to the provided closure f. Read more
ยง

fn left_future<B>(self) -> Either<Self, B> โ“˜
where B: Future<Output = Self::Output>, Self: Sized,

Wrap this future in an Either future, making it the left-hand variant of that Either. Read more
ยง

fn right_future<A>(self) -> Either<A, Self> โ“˜
where A: Future<Output = Self::Output>, Self: Sized,

Wrap this future in an Either future, making it the right-hand variant of that Either. Read more
ยง

fn into_stream(self) -> IntoStream<Self>
where Self: Sized,

Convert this future into a single element stream. Read more
ยง

fn flatten(self) -> Flatten<Self> โ“˜
where Self::Output: Future, Self: Sized,

Flatten the execution of this future when the output of this future is itself another future. Read more
ยง

fn flatten_stream(self) -> FlattenStream<Self>
where Self::Output: Stream, Self: Sized,

Flatten the execution of this future when the successful result of this future is a stream. Read more
ยง

fn fuse(self) -> Fuse<Self> โ“˜
where Self: Sized,

Fuse a future such that poll will never again be called once it has completed. This method can be used to turn any Future into a FusedFuture. Read more
ยง

fn inspect<F>(self, f: F) -> Inspect<Self, F> โ“˜
where F: FnOnce(&Self::Output), Self: Sized,

Do something with the output of a future before passing it on. Read more
ยง

fn catch_unwind(self) -> CatchUnwind<Self> โ“˜
where Self: Sized + UnwindSafe,

Catches unwinding panics while polling the future. Read more
ยง

fn shared(self) -> Shared<Self> โ“˜
where Self: Sized, Self::Output: Clone,

Create a cloneable handle to this future where all handles will resolve to the same result. Read more
ยง

fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)
where Self: Sized,

Turn this future into a future that yields () on completion and sends its output to another future on a separate task. Read more
ยง

fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
where Self: Sized + Send + 'a,

Wrap the future in a Box, pinning it. Read more
ยง

fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
where Self: Sized + 'a,

Wrap the future in a Box, pinning it. Read more
ยง

fn unit_error(self) -> UnitError<Self> โ“˜
where Self: Sized,

ยง

fn never_error(self) -> NeverError<Self> โ“˜
where Self: Sized,

ยง

fn poll_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output>
where Self: Unpin,

A convenience for calling Future::poll on Unpin future types.
ยง

fn now_or_never(self) -> Option<Self::Output>
where Self: Sized,

Evaluates and consumes the future, returning the resulting output if the future is ready after the first call to Future::poll. Read more
ยง

impl<T> FutureExt for T
where T: Future + ?Sized,

ยง

fn with_cancellation_token( self, cancellation_token: &CancellationToken, ) -> WithCancellationTokenFuture<'_, Self>
where Self: Sized,

Similar to [CancellationToken::run_until_cancelled], but with the advantage that it is easier to write fluent call chains, and biased towards waiting for [CancellationToken] to complete. Read more
ยง

fn with_cancellation_token_owned( self, cancellation_token: CancellationToken, ) -> WithCancellationTokenFutureOwned<Self>
where Self: Sized,

Similar to [CancellationToken::run_until_cancelled_owned], but with the advantage that it is easier to write fluent call chains, and biased towards waiting for [CancellationToken] to complete. Read more
ยง

impl<F, V> InnerHtmlValue for F
where F: ReactiveFunction<Output = V>, V: InnerHtmlValue + 'static, <V as InnerHtmlValue>::State: 'static,

ยง

type AsyncOutput = <V as InnerHtmlValue>::AsyncOutput

The type after all async data have resolved.
ยง

type State = RenderEffect<<V as InnerHtmlValue>::State>

The view state retained between building and rebuilding.
ยง

type Cloneable = Arc<Mutex<dyn FnMut() -> V + Send>>

An equivalent value that can be cloned.
ยง

type CloneableOwned = Arc<Mutex<dyn FnMut() -> V + Send>>

An equivalent value that can be cloned and is 'static.
ยง

fn html_len(&self) -> usize

The estimated length of the HTML.
ยง

fn to_html(self, buf: &mut String)

Renders the class to HTML.
ยง

fn to_template(_buf: &mut String)

Renders the class to HTML for a <template>.
ยง

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <F as InnerHtmlValue>::State

Adds interactivity as necessary, given DOM nodes that were created from HTML that has either been rendered on the server, or cloned for a <template>.
ยง

fn build(self, el: &Element) -> <F as InnerHtmlValue>::State

Adds this class to the element during client-side rendering.
ยง

fn rebuild(self, state: &mut <F as InnerHtmlValue>::State)

Updates the value.
ยง

fn into_cloneable(self) -> <F as InnerHtmlValue>::Cloneable

Converts this to a cloneable type.
ยง

fn into_cloneable_owned(self) -> <F as InnerHtmlValue>::CloneableOwned

Converts this to a cloneable, owned type.
ยง

fn dry_resolve(&mut self)

โ€œRunsโ€ the attribute without other side effects. For primitive types, this is a no-op. For reactive types, this can be used to gather data about reactivity or about asynchronous data that needs to be loaded.
ยง

async fn resolve(self) -> <F as InnerHtmlValue>::AsyncOutput

โ€œResolvesโ€ this into a type that is not waiting for any asynchronous data.
ยง

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

impl<T> IntoAny for T
where T: Send + RenderHtml,

ยง

fn into_any(self) -> AnyView

Converts the view into a type-erased AnyView.
ยง

impl<T> IntoAttributeValue for T
where T: AttributeValue,

ยง

type Output = T

The attribute value into which this type can be converted.
ยง

fn into_attribute_value(self) -> <T as IntoAttributeValue>::Output

Consumes this value, transforming it into an attribute value.
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.
ยง

impl<F, C> IntoClass for F
where F: ReactiveFunction<Output = C>, C: IntoClass + 'static, <C as IntoClass>::State: 'static,

ยง

type AsyncOutput = <C as IntoClass>::AsyncOutput

The type after all async data have resolved.
ยง

type State = RenderEffect<<C as IntoClass>::State>

The view state retained between building and rebuilding.
ยง

type Cloneable = Arc<Mutex<dyn FnMut() -> C + Send>>

An equivalent value that can be cloned.
ยง

type CloneableOwned = Arc<Mutex<dyn FnMut() -> C + Send>>

An equivalent value that can be cloned and is 'static.
ยง

fn html_len(&self) -> usize

The estimated length of the HTML.
ยง

fn to_html(self, class: &mut String)

Renders the class to HTML.
ยง

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <F as IntoClass>::State

Adds interactivity as necessary, given DOM nodes that were created from HTML that has either been rendered on the server, or cloned for a <template>.
ยง

fn build(self, el: &Element) -> <F as IntoClass>::State

Adds this class to the element during client-side rendering.
ยง

fn rebuild(self, state: &mut <F as IntoClass>::State)

Updates the value.
ยง

fn into_cloneable(self) -> <F as IntoClass>::Cloneable

Converts this to a cloneable type.
ยง

fn into_cloneable_owned(self) -> <F as IntoClass>::CloneableOwned

Converts this to a cloneable, owned type.
ยง

fn dry_resolve(&mut self)

โ€œRunsโ€ the attribute without other side effects. For primitive types, this is a no-op. For reactive types, this can be used to gather data about reactivity or about asynchronous data that needs to be loaded.
ยง

async fn resolve(self) -> <F as IntoClass>::AsyncOutput

โ€œResolvesโ€ this into a type that is not waiting for any asynchronous data.
ยง

fn reset(state: &mut <F as IntoClass>::State)

Reset the class list to the state before this class was added.
ยง

const TEMPLATE: &'static str = ""

The HTML that should be included in a <template>.
ยง

const MIN_LENGTH: usize = _

The minimum length of the HTML.
ยง

fn to_template(class: &mut String)

Renders the class to HTML for a <template>.
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
Sourceยง

impl<F> IntoFuture for F
where F: Future,

Sourceยง

type Output = <F as Future>::Output

The output that the future will produce on completion.
Sourceยง

type IntoFuture = F

Which kind of future are we turning this into?
Sourceยง

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
ยง

impl<T> IntoMaybeErased for T
where T: RenderHtml,

ยง

type Output = T

The type of the output.
ยง

fn into_maybe_erased(self) -> <T as IntoMaybeErased>::Output

Converts the view into a type-erased view if in erased mode.
ยง

impl<F, V> IntoProperty for F
where F: ReactiveFunction<Output = V>, V: IntoProperty + 'static, <V as IntoProperty>::State: 'static,

ยง

type State = RenderEffect<<V as IntoProperty>::State>

The view state retained between building and rebuilding.
ยง

type Cloneable = Arc<Mutex<dyn FnMut() -> V + Send>>

An equivalent value that can be cloned.
ยง

type CloneableOwned = Arc<Mutex<dyn FnMut() -> V + Send>>

An equivalent value that can be cloned and is 'static.
ยง

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, key: &str, ) -> <F as IntoProperty>::State

Adds the property on an element created from HTML.
ยง

fn build(self, el: &Element, key: &str) -> <F as IntoProperty>::State

Adds the property during client-side rendering.
ยง

fn rebuild(self, state: &mut <F as IntoProperty>::State, key: &str)

Updates the property with a new value.
ยง

fn into_cloneable(self) -> <F as IntoProperty>::Cloneable

Converts this to a cloneable type.
ยง

fn into_cloneable_owned(self) -> <F as IntoProperty>::CloneableOwned

Converts this to a cloneable, owned type.
ยง

impl<T> IntoRender for T
where T: Render,

ยง

type Output = T

The renderable type into which this type can be converted.
ยง

fn into_render(self) -> <T as IntoRender>::Output

Consumes this value, transforming it into the renderable type.
ยง

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<F, C> IntoStyle for F
where F: ReactiveFunction<Output = C>, C: IntoStyle + 'static, <C as IntoStyle>::State: 'static,

ยง

type AsyncOutput = <C as IntoStyle>::AsyncOutput

The type after all async data have resolved.
ยง

type State = RenderEffect<<C as IntoStyle>::State>

The view state retained between building and rebuilding.
ยง

type Cloneable = Arc<Mutex<dyn FnMut() -> C + Send>>

An equivalent value that can be cloned.
ยง

type CloneableOwned = Arc<Mutex<dyn FnMut() -> C + Send>>

An equivalent value that can be cloned and is 'static.
ยง

fn to_html(self, style: &mut String)

Renders the style to HTML.
ยง

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <F as IntoStyle>::State

Adds interactivity as necessary, given DOM nodes that were created from HTML that has either been rendered on the server, or cloned for a <template>.
ยง

fn build(self, el: &Element) -> <F as IntoStyle>::State

Adds this style to the element during client-side rendering.
ยง

fn rebuild(self, state: &mut <F as IntoStyle>::State)

Updates the value.
ยง

fn into_cloneable(self) -> <F as IntoStyle>::Cloneable

Converts this to a cloneable type.
ยง

fn into_cloneable_owned(self) -> <F as IntoStyle>::CloneableOwned

Converts this to a cloneable, owned type.
ยง

fn dry_resolve(&mut self)

โ€œRunsโ€ the attribute without other side effects. For primitive types, this is a no-op. For reactive types, this can be used to gather data about reactivity or about asynchronous data that needs to be loaded.
ยง

async fn resolve(self) -> <F as IntoStyle>::AsyncOutput

โ€œResolvesโ€ this into a type that is not waiting for any asynchronous data.
ยง

fn reset(state: &mut <F as IntoStyle>::State)

Reset the styling to the state before this style was added.
ยง

impl<F, S> IntoStyleValue for F
where F: ReactiveFunction<Output = S>, S: IntoStyleValue + 'static,

ยง

type AsyncOutput = F

The type after all async data have resolved.
ยง

type State = (Arc<str>, RenderEffect<<S as IntoStyleValue>::State>)

The view state retained between building and rebuilding.
ยง

type Cloneable = Arc<Mutex<dyn FnMut() -> S + Send>>

An equivalent value that can be cloned.
ยง

type CloneableOwned = Arc<Mutex<dyn FnMut() -> S + Send>>

An equivalent value that can be cloned and is 'static.
ยง

fn to_html(self, name: &str, style: &mut String)

Renders the style to HTML.
ยง

fn build( self, style: &CssStyleDeclaration, name: &str, ) -> <F as IntoStyleValue>::State

Adds this style to the element during client-side rendering.
ยง

fn rebuild( self, style: &CssStyleDeclaration, name: &str, state: &mut <F as IntoStyleValue>::State, )

Updates the value.
ยง

fn hydrate( self, style: &CssStyleDeclaration, name: &str, ) -> <F as IntoStyleValue>::State

Adds interactivity as necessary, given DOM nodes that were created from HTML that has either been rendered on the server, or cloned for a <template>.
ยง

fn into_cloneable(self) -> <F as IntoStyleValue>::Cloneable

Converts this to a cloneable type.
ยง

fn into_cloneable_owned(self) -> <F as IntoStyleValue>::CloneableOwned

Converts this to a cloneable, owned type.
ยง

fn dry_resolve(&mut self)

โ€œRunsโ€ the attribute without other side effects. For primitive types, this is a no-op. For reactive types, this can be used to gather data about reactivity or about asynchronous data that needs to be loaded.
ยง

async fn resolve(self) -> <F as IntoStyleValue>::AsyncOutput

โ€œResolvesโ€ this into a type that is not waiting for any asynchronous data.
ยง

impl<T> IntoView for T
where T: Render + RenderHtml + Send,

ยง

fn into_view(self) -> View<T>

Wraps the inner type.
ยง

impl<F, B> MakeSpan<B> for F
where F: FnMut(&Request<B>) -> Span,

ยง

fn make_span(&mut self, request: &Request<B>) -> Span

Make a span from a request.
ยง

impl<B, F> OnBodyChunk<B> for F
where F: FnMut(&B, Duration, &Span),

ยง

fn on_body_chunk(&mut self, chunk: &B, latency: Duration, span: &Span)

Do the thing. Read more
ยง

impl<F> OnEos for F
where F: FnOnce(Option<&HeaderMap>, Duration, &Span),

ยง

fn on_eos( self, trailers: Option<&HeaderMap>, stream_duration: Duration, span: &Span, )

Do the thing. Read more
ยง

impl<F> OnFailedUpgrade for F
where F: FnOnce(Error) + Send + 'static,

ยง

fn call(self, error: Error)

Call the callback.
ยง

impl<F, FailureClass> OnFailure<FailureClass> for F
where F: FnMut(FailureClass, Duration, &Span),

ยง

fn on_failure( &mut self, failure_classification: FailureClass, latency: Duration, span: &Span, )

Do the thing. Read more
ยง

impl<B, F> OnRequest<B> for F
where F: FnMut(&Request<B>, &Span),

ยง

fn on_request(&mut self, request: &Request<B>, span: &Span)

Do the thing. Read more
ยง

impl<B, F> OnResponse<B> for F
where F: FnOnce(&Response<B>, Duration, &Span),

ยง

fn on_response(self, response: &Response<B>, latency: Duration, span: &Span)

Do the thing. Read more
ยง

impl<I, O, E, F> Parser<I, O, E> for F
where F: FnMut(&mut I) -> Result<O, E>, I: Stream,

ยง

fn parse_next(&mut self, i: &mut I) -> Result<O, E>

Take tokens from the [Stream], turning it into the output Read more
ยง

fn parse( &mut self, input: I, ) -> Result<O, ParseError<I, <E as ParserError<I>>::Inner>>
where Self: Sized, I: Stream + StreamIsPartial, E: ParserError<I>, <E as ParserError<I>>::Inner: ParserError<I>,

Parse all of input, generating O from it Read more
ยง

fn parse_peek(&mut self, input: I) -> Result<(I, O), E>

Take tokens from the [Stream], turning it into the output Read more
ยง

fn by_ref(&mut self) -> ByRef<'_, Self, I, O, E>
where Self: Sized,

Treat &mut Self as a parser Read more
ยง

fn value<O2>(self, val: O2) -> Value<Self, I, O, O2, E>
where Self: Sized, O2: Clone,

Produce the provided value Read more
ยง

fn default_value<O2>(self) -> DefaultValue<Self, I, O, O2, E>
where Self: Sized, O2: Default,

Produce a typeโ€™s default value Read more
ยง

fn void(self) -> Void<Self, I, O, E>
where Self: Sized,

Discards the output of the Parser Read more
ยง

fn output_into<O2>(self) -> OutputInto<Self, I, O, O2, E>
where Self: Sized, O: Into<O2>,

Convert the parserโ€™s output to another type using std::convert::From Read more
ยง

fn take(self) -> Take<Self, I, O, E>
where Self: Sized, I: Stream,

Produce the consumed input as produced value. Read more
ยง

fn with_taken(self) -> WithTaken<Self, I, O, E>
where Self: Sized, I: Stream,

Produce the consumed input with the output Read more
ยง

fn span(self) -> Span<Self, I, O, E>
where Self: Sized, I: Stream + Location,

Produce the location of the consumed input as produced value. Read more
ยง

fn with_span(self) -> WithSpan<Self, I, O, E>
where Self: Sized, I: Stream + Location,

Produce the location of consumed input with the output Read more
ยง

fn map<G, O2>(self, map: G) -> Map<Self, G, I, O, O2, E>
where G: FnMut(O) -> O2, Self: Sized,

Maps a function over the output of a parser Read more
ยง

fn try_map<G, O2, E2>(self, map: G) -> TryMap<Self, G, I, O, O2, E, E2>
where Self: Sized, G: FnMut(O) -> Result<O2, E2>, I: Stream, E: FromExternalError<I, E2> + ParserError<I>,

Applies a function returning a Result over the output of a parser. Read more
ยง

fn verify_map<G, O2>(self, map: G) -> VerifyMap<Self, G, I, O, O2, E>
where Self: Sized, G: FnMut(O) -> Option<O2>, I: Stream, E: ParserError<I>,

Apply both [Parser::verify] and [Parser::map]. Read more
ยง

fn flat_map<G, H, O2>(self, map: G) -> FlatMap<Self, G, H, I, O, O2, E>
where Self: Sized, G: FnMut(O) -> H, H: Parser<I, O2, E>,

Creates a parser from the output of this one Read more
ยง

fn and_then<G, O2>(self, inner: G) -> AndThen<Self, G, I, O, O2, E>
where Self: Sized, G: Parser<O, O2, E>, O: StreamIsPartial, I: Stream,

Applies a second parser over the output of the first one Read more
ยง

fn parse_to<O2>(self) -> ParseTo<Self, I, O, O2, E>
where Self: Sized, I: Stream, O: ParseSlice<O2>, E: ParserError<I>,

Apply std::str::FromStr to the output of the parser Read more
ยง

fn verify<G, O2>(self, filter: G) -> Verify<Self, G, I, O, O2, E>
where Self: Sized, G: FnMut(&O2) -> bool, I: Stream, O: Borrow<O2>, E: ParserError<I>, O2: ?Sized,

Returns the output of the child parser if it satisfies a verification function. Read more
ยง

fn context<C>(self, context: C) -> Context<Self, I, O, E, C>
where Self: Sized, I: Stream, E: AddContext<I, C> + ParserError<I>, C: Clone + Debug,

If parsing fails, add context to the error Read more
ยง

fn context_with<F, C, FI>( self, context: F, ) -> ContextWith<Self, I, O, E, F, C, FI>
where Self: Sized, I: Stream, E: AddContext<I, C> + ParserError<I>, F: Fn() -> FI + Clone, C: Debug, FI: Iterator<Item = C>,

If parsing fails, dynamically add context to the error Read more
ยง

fn map_err<G, E2>(self, map: G) -> MapErr<Self, G, I, O, E, E2>
where G: FnMut(E) -> E2, Self: Sized,

Maps a function over the error of a parser Read more
ยง

fn complete_err(self) -> CompleteErr<Self, I, O, E>
where Self: Sized,

Transforms [Incomplete][crate::error::ErrMode::Incomplete] into [Backtrack][crate::error::ErrMode::Backtrack] Read more
ยง

fn err_into<E2>(self) -> ErrInto<Self, I, O, E, E2>
where Self: Sized, E: Into<E2>,

Convert the parserโ€™s error to another type using std::convert::From
ยง

impl<'a, I, O, E, F> Parser<I, O, E> for F
where F: FnMut(I) -> Result<(I, O), Err<E>> + 'a,

ยง

fn parse(&mut self, i: I) -> Result<(I, O), Err<E>>

A parser takes in input type, and returns a Result containing either the remaining input and the output value, or an error
ยง

fn map<G, O2>(self, g: G) -> Map<Self, G, O>
where G: Fn(O) -> O2, Self: Sized,

Maps a function over the result of a parser
ยง

fn flat_map<G, H, O2>(self, g: G) -> FlatMap<Self, G, O>
where G: FnMut(O) -> H, H: Parser<I, O2, E>, Self: Sized,

Creates a second parser from the output of the first one, then apply over the rest of the input
ยง

fn and_then<G, O2>(self, g: G) -> AndThen<Self, G, O>
where G: Parser<O, O2, E>, Self: Sized,

Applies a second parser over the output of the first one
ยง

fn and<G, O2>(self, g: G) -> And<Self, G>
where G: Parser<I, O2, E>, Self: Sized,

Applies a second parser after the first one, return their results as a tuple
ยง

fn or<G>(self, g: G) -> Or<Self, G>
where G: Parser<I, O, E>, Self: Sized,

Applies a second parser over the input if the first one failed
ยง

fn into<O2, E2>(self) -> Into<Self, O, O2, E, E2>
where O2: From<O>, E2: From<E>, Self: Sized,

automatically converts the parserโ€™s output and error values to another type, as long as they implement the From trait
ยง

impl<I, O, E, F> Parser<I, O, E> for F
where F: FnMut(&mut I) -> Result<O, ErrMode<E>>, I: Stream,

ยง

fn parse_next(&mut self, i: &mut I) -> Result<O, ErrMode<E>>

Take tokens from the [Stream], turning it into the output Read more
ยง

fn parse(&mut self, input: I) -> Result<O, ParseError<I, E>>
where Self: Sized, I: Stream + StreamIsPartial, E: ParserError<I>,

Parse all of input, generating O from it
ยง

fn parse_peek(&mut self, input: I) -> Result<(I, O), ErrMode<E>>

Take tokens from the [Stream], turning it into the output Read more
ยง

fn by_ref(&mut self) -> ByRef<'_, Self>
where Self: Sized,

Treat &mut Self as a parser Read more
ยง

fn value<O2>(self, val: O2) -> Value<Self, I, O, O2, E>
where Self: Sized, O2: Clone,

Produce the provided value Read more
ยง

fn default_value<O2>(self) -> DefaultValue<Self, I, O, O2, E>
where Self: Sized, O2: Default,

Produce a typeโ€™s default value Read more
ยง

fn void(self) -> Void<Self, I, O, E>
where Self: Sized,

Discards the output of the Parser Read more
ยง

fn output_into<O2>(self) -> OutputInto<Self, I, O, O2, E>
where Self: Sized, O: Into<O2>,

Convert the parserโ€™s output to another type using std::convert::From Read more
ยง

fn take(self) -> Take<Self, I, O, E>
where Self: Sized, I: Stream,

Produce the consumed input as produced value. Read more
ยง

fn recognize(self) -> Take<Self, I, O, E>
where Self: Sized, I: Stream,

๐Ÿ‘ŽDeprecated since 0.6.14: Replaced with Parser::take
Replaced with [Parser::take]
ยง

fn with_taken(self) -> WithTaken<Self, I, O, E>
where Self: Sized, I: Stream,

Produce the consumed input with the output Read more
ยง

fn with_recognized(self) -> WithTaken<Self, I, O, E>
where Self: Sized, I: Stream,

๐Ÿ‘ŽDeprecated since 0.6.14: Replaced with Parser::with_taken
Replaced with [Parser::with_taken]
ยง

fn span(self) -> Span<Self, I, O, E>
where Self: Sized, I: Stream + Location,

Produce the location of the consumed input as produced value. Read more
ยง

fn with_span(self) -> WithSpan<Self, I, O, E>
where Self: Sized, I: Stream + Location,

Produce the location of consumed input with the output Read more
ยง

fn map<G, O2>(self, map: G) -> Map<Self, G, I, O, O2, E>
where G: FnMut(O) -> O2, Self: Sized,

Maps a function over the output of a parser Read more
ยง

fn try_map<G, O2, E2>(self, map: G) -> TryMap<Self, G, I, O, O2, E, E2>
where Self: Sized, G: FnMut(O) -> Result<O2, E2>, I: Stream, E: FromExternalError<I, E2>,

Applies a function returning a Result over the output of a parser. Read more
ยง

fn verify_map<G, O2>(self, map: G) -> VerifyMap<Self, G, I, O, O2, E>
where Self: Sized, G: FnMut(O) -> Option<O2>, I: Stream, E: ParserError<I>,

Apply both [Parser::verify] and [Parser::map]. Read more
ยง

fn flat_map<G, H, O2>(self, map: G) -> FlatMap<Self, G, H, I, O, O2, E>
where Self: Sized, G: FnMut(O) -> H, H: Parser<I, O2, E>,

Creates a parser from the output of this one Read more
ยง

fn and_then<G, O2>(self, inner: G) -> AndThen<Self, G, I, O, O2, E>
where Self: Sized, G: Parser<O, O2, E>, O: StreamIsPartial, I: Stream,

Applies a second parser over the output of the first one Read more
ยง

fn parse_to<O2>(self) -> ParseTo<Self, I, O, O2, E>
where Self: Sized, I: Stream, O: ParseSlice<O2>, E: ParserError<I>,

Apply std::str::FromStr to the output of the parser Read more
ยง

fn verify<G, O2>(self, filter: G) -> Verify<Self, G, I, O, O2, E>
where Self: Sized, G: FnMut(&O2) -> bool, I: Stream, O: Borrow<O2>, E: ParserError<I>, O2: ?Sized,

Returns the output of the child parser if it satisfies a verification function. Read more
ยง

fn context<C>(self, context: C) -> Context<Self, I, O, E, C>
where Self: Sized, I: Stream, E: AddContext<I, C>, C: Clone + Debug,

If parsing fails, add context to the error Read more
ยง

fn complete_err(self) -> CompleteErr<Self>
where Self: Sized,

Transforms [Incomplete][crate::error::ErrMode::Incomplete] into [Backtrack][crate::error::ErrMode::Backtrack] Read more
ยง

fn err_into<E2>(self) -> ErrInto<Self, I, O, E, E2>
where Self: Sized, E: Into<E2>,

Convert the parserโ€™s error to another type using std::convert::From
Sourceยง

impl<F, T> Parser for F
where F: FnOnce(&ParseBuffer<'_>) -> Result<T, Error>,

Sourceยง

type Output = T

Sourceยง

fn parse2(self, tokens: TokenStream) -> Result<T, Error>

Parse a proc-macro2 token stream into the chosen syntax tree node. Read more
Sourceยง

fn __parse_scoped( self, scope: Span, tokens: TokenStream, ) -> Result<<F as Parser>::Output, Error>

Sourceยง

fn parse(self, tokens: TokenStream) -> Result<Self::Output, Error>

Parse tokens of source code into the chosen syntax tree node. Read more
Sourceยง

fn parse_str(self, s: &str) -> Result<Self::Output, Error>

Parse a string of Rust code into the chosen syntax tree node. Read more
Sourceยง

impl<F> Pattern for F
where F: FnMut(char) -> bool,

Sourceยง

type Searcher<'a> = CharPredicateSearcher<'a, F>

๐Ÿ”ฌThis is a nightly-only experimental API. (pattern)
Associated searcher for this pattern
Sourceยง

fn into_searcher<'a>(self, haystack: &'a str) -> CharPredicateSearcher<'a, F>

๐Ÿ”ฌThis is a nightly-only experimental API. (pattern)
Constructs the associated searcher from self and the haystack to search in.
Sourceยง

fn is_contained_in<'a>(self, haystack: &'a str) -> bool

๐Ÿ”ฌThis is a nightly-only experimental API. (pattern)
Checks whether the pattern matches anywhere in the haystack
Sourceยง

fn is_prefix_of<'a>(self, haystack: &'a str) -> bool

๐Ÿ”ฌThis is a nightly-only experimental API. (pattern)
Checks whether the pattern matches at the front of the haystack
Sourceยง

fn strip_prefix_of<'a>(self, haystack: &'a str) -> Option<&'a str>

๐Ÿ”ฌThis is a nightly-only experimental API. (pattern)
Removes the pattern from the front of haystack, if it matches.
Sourceยง

fn is_suffix_of<'a>(self, haystack: &'a str) -> bool

๐Ÿ”ฌThis is a nightly-only experimental API. (pattern)
Checks whether the pattern matches at the back of the haystack
Sourceยง

fn strip_suffix_of<'a>(self, haystack: &'a str) -> Option<&'a str>

๐Ÿ”ฌThis is a nightly-only experimental API. (pattern)
Removes the pattern from the back of haystack, if it matches.
Sourceยง

fn as_utf8_pattern(&self) -> Option<Utf8Pattern<'_>>

๐Ÿ”ฌThis is a nightly-only experimental API. (pattern)
Returns the pattern as utf-8 bytes if possible.
ยง

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

impl<F, T> ReactiveFunction for F
where F: FnMut() -> T + Send + 'static,

ยง

type Output = T

The return type of the function.
ยง

fn invoke(&mut self) -> <F as ReactiveFunction>::Output

Call the function.
ยง

fn into_shared( self, ) -> Arc<Mutex<dyn FnMut() -> <F as ReactiveFunction>::Output + Send>>

Converts the function into a cloneable, shared type.
ยง

impl<F, V> Render for F
where F: ReactiveFunction<Output = V>, V: Render, <V as Render>::State: 'static,

ยง

type State = RenderEffectState<<V as Render>::State>

The โ€œview stateโ€ for this type, which can be retained between updates. Read more
ยง

fn build(self) -> <F as Render>::State

Creates the view for the first time, without hydrating from existing HTML.
ยง

fn rebuild(self, state: &mut <F as Render>::State)

Updates the view with new data.
ยง

impl<F, V> RenderHtml for F
where F: ReactiveFunction<Output = V>, V: RenderHtml + 'static, <V as Render>::State: 'static,

ยง

const MIN_LENGTH: usize = 0usize

The minimum length of HTML created when this view is rendered.
ยง

type AsyncOutput = <V as RenderHtml>::AsyncOutput

The type of the view after waiting for all asynchronous data to load.
ยง

type Owned = F

An equivalent value that is 'static.
ยง

fn dry_resolve(&mut self)

โ€œRunsโ€ the view without other side effects. For primitive types, this is a no-op. For reactive types, this can be used to gather data about reactivity or about asynchronous data that needs to be loaded.
ยง

async fn resolve(self) -> <F as RenderHtml>::AsyncOutput

Waits for any asynchronous sections of the view to load and returns the output.
ยง

fn html_len(&self) -> usize

An estimated length for this view, when rendered to HTML. Read more
ยง

fn to_html_with_buf( self, buf: &mut String, position: &mut Position, escape: bool, mark_branches: bool, extra_attrs: Vec<AnyAttribute>, )

Renders a view to HTML, writing it into the given buffer.
ยง

fn to_html_async_with_buf<const OUT_OF_ORDER: bool>( self, buf: &mut StreamBuilder, position: &mut Position, escape: bool, mark_branches: bool, extra_attrs: Vec<AnyAttribute>, )

Renders a view into a buffer of (synchronous or asynchronous) HTML chunks.
ยง

fn hydrate<const FROM_SERVER: bool>( self, cursor: &Cursor, position: &PositionState, ) -> <F as Render>::State

Makes a set of DOM nodes rendered from HTML interactive. Read more
ยง

async fn hydrate_async( self, cursor: &Cursor, position: &PositionState, ) -> <F as Render>::State

Asynchronously makes a set of DOM nodes rendered from HTML interactive. Read more
ยง

fn into_owned(self) -> <F as RenderHtml>::Owned

Convert into the equivalent value that is 'static.
ยง

const EXISTS: bool = true

Whether this should actually exist in the DOM, if it is the child of an element.
ยง

fn to_html(self) -> String
where Self: Sized,

Renders a view to an HTML string.
ยง

fn to_html_branching(self) -> String
where Self: Sized,

Renders a view to HTML with branch markers. This can be used to support libraries that diff HTML pages against one another, by marking sections of the view that branch to different types with marker comments.
ยง

fn to_html_stream_in_order(self) -> StreamBuilder
where Self: Sized,

Renders a view to an in-order stream of HTML.
ยง

fn to_html_stream_in_order_branching(self) -> StreamBuilder
where Self: Sized,

Renders a view to an in-order stream of HTML with branch markers. This can be used to support libraries that diff HTML pages against one another, by marking sections of the view that branch to different types with marker comments.
ยง

fn to_html_stream_out_of_order(self) -> StreamBuilder
where Self: Sized,

Renders a view to an out-of-order stream of HTML.
ยง

fn to_html_stream_out_of_order_branching(self) -> StreamBuilder
where Self: Sized,

Renders a view to an out-of-order stream of HTML with branch markers. This can be used to support libraries that diff HTML pages against one another, by marking sections of the view that branch to different types with marker comments.
ยง

fn hydrate_from<const FROM_SERVER: bool>(self, el: &Element) -> Self::State
where Self: Sized,

Hydrates using RenderHtml::hydrate, beginning at the given element.
ยง

fn hydrate_from_position<const FROM_SERVER: bool>( self, el: &Element, position: Position, ) -> Self::State
where Self: Sized,

Hydrates using RenderHtml::hydrate, beginning at the given element and position.
ยง

impl<F, T> Replacer for F
where F: FnMut(&Captures<'_>) -> T, T: AsRef<[u8]>,

ยง

fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut Vec<u8>)

Appends possibly empty data to dst to replace the current match. Read more
ยง

fn no_expansion<'r>(&'r mut self) -> Option<Cow<'r, [u8]>>

Return a fixed unchanging replacement byte string. Read more
ยง

fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>

Returns a type that implements Replacer, but that borrows and wraps this Replacer. Read more
ยง

impl<F, T> Replacer for F
where F: FnMut(&Captures<'_>) -> T, T: AsRef<str>,

ยง

fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut String)

Appends possibly empty data to dst to replace the current match. Read more
ยง

fn no_expansion<'r>(&'r mut self) -> Option<Cow<'r, str>>

Return a fixed unchanging replacement string. Read more
ยง

fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>

Returns a type that implements Replacer, but that borrows and wraps this Replacer. Read more
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
ยง

impl<F, TScore> ScoreSegmentTweaker<TScore> for F
where F: 'static + FnMut(u32, f32) -> TScore,

ยง

fn score(&mut self, doc: u32, score: f32) -> TScore

Tweak the given score for the document doc.
ยง

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

impl<F, V> ToTemplate for F
where F: ReactiveFunction<Output = V>, V: ToTemplate,

ยง

const TEMPLATE: &'static str = V::TEMPLATE

The HTML content of the static template.
ยง

fn to_template( buf: &mut String, class: &mut String, style: &mut String, inner_html: &mut String, position: &mut Position, )

Renders a view type to a template. This does not take actual view data, but can be used for constructing part of an HTML <template> that corresponds to a view of a particular type.
ยง

const CLASS: &'static str = ""

The class attribute content known at compile time.
ยง

const STYLE: &'static str = ""

The style attribute content known at compile time.
ยง

const LEN: usize = _

The length of the template.
ยง

fn to_template_attribute( buf: &mut String, class: &mut String, style: &mut String, inner_html: &mut String, position: &mut Position, )

Renders a view type to a template in attribute position.
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.
ยง

impl<F, T, E> TryFuture for F
where F: Future<Output = Result<T, E>> + ?Sized,

ยง

type Ok = T

The type of successful values yielded by this future
ยง

type Error = E

The type of failures yielded by this future
ยง

fn try_poll( self: Pin<&mut F>, cx: &mut Context<'_>, ) -> Poll<<F as Future>::Output>

Poll this TryFuture as if it were a Future. Read more
ยง

impl<Fut> TryFutureExt for Fut
where Fut: TryFuture + ?Sized,

ยง

fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>
where Self::Ok: Sink<Item, Error = Self::Error>, Self: Sized,

Flattens the execution of this future when the successful result of this future is a [Sink]. Read more
ยง

fn map_ok<T, F>(self, f: F) -> MapOk<Self, F> โ“˜
where F: FnOnce(Self::Ok) -> T, Self: Sized,

Maps this futureโ€™s success value to a different value. Read more
ยง

fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E> โ“˜
where F: FnOnce(Self::Ok) -> T, E: FnOnce(Self::Error) -> T, Self: Sized,

Maps this futureโ€™s success value to a different value, and permits for error handling resulting in the same type. Read more
ยง

fn map_err<E, F>(self, f: F) -> MapErr<Self, F> โ“˜
where F: FnOnce(Self::Error) -> E, Self: Sized,

Maps this futureโ€™s error value to a different value. Read more
ยง

fn err_into<E>(self) -> ErrInto<Self, E> โ“˜
where Self: Sized, Self::Error: Into<E>,

Maps this futureโ€™s Error to a new error type using the Into trait. Read more
ยง

fn ok_into<U>(self) -> OkInto<Self, U> โ“˜
where Self: Sized, Self::Ok: Into<U>,

Maps this futureโ€™s Ok to a new type using the Into trait.
ยง

fn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F> โ“˜
where F: FnOnce(Self::Ok) -> Fut, Fut: TryFuture<Error = Self::Error>, Self: Sized,

Executes another future after this one resolves successfully. The success value is passed to a closure to create this subsequent future. Read more
ยง

fn or_else<Fut, F>(self, f: F) -> OrElse<Self, Fut, F> โ“˜
where F: FnOnce(Self::Error) -> Fut, Fut: TryFuture<Ok = Self::Ok>, Self: Sized,

Executes another future if this one resolves to an error. The error value is passed to a closure to create this subsequent future. Read more
ยง

fn inspect_ok<F>(self, f: F) -> InspectOk<Self, F> โ“˜
where F: FnOnce(&Self::Ok), Self: Sized,

Do something with the success value of a future before passing it on. Read more
ยง

fn inspect_err<F>(self, f: F) -> InspectErr<Self, F> โ“˜
where F: FnOnce(&Self::Error), Self: Sized,

Do something with the error value of a future before passing it on. Read more
ยง

fn try_flatten(self) -> TryFlatten<Self, Self::Ok> โ“˜
where Self::Ok: TryFuture<Error = Self::Error>, Self: Sized,

Flatten the execution of this future when the successful result of this future is another future. Read more
ยง

fn try_flatten_stream(self) -> TryFlattenStream<Self>
where Self::Ok: TryStream<Error = Self::Error>, Self: Sized,

Flatten the execution of this future when the successful result of this future is a stream. Read more
ยง

fn unwrap_or_else<F>(self, f: F) -> UnwrapOrElse<Self, F> โ“˜
where Self: Sized, F: FnOnce(Self::Error) -> Self::Ok,

Unwraps this futureโ€™s output, producing a future with this futureโ€™s Ok type as its Output type. Read more
ยง

fn into_future(self) -> IntoFuture<Self> โ“˜
where Self: Sized,

Wraps a [TryFuture] into a type that implements Future. Read more
ยง

fn try_poll_unpin( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Self::Ok, Self::Error>>
where Self: Unpin,

A convenience method for calling [TryFuture::try_poll] on Unpin future types.
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<F> Visit for F
where F: FnMut(&Field, &dyn Debug),

ยง

fn record_debug(&mut self, field: &Field, value: &dyn Debug)

Visit a value implementing fmt::Debug.
ยง

fn record_f64(&mut self, field: &Field, value: f64)

Visit a double-precision floating point value.
ยง

fn record_i64(&mut self, field: &Field, value: i64)

Visit a signed 64-bit integer value.
ยง

fn record_u64(&mut self, field: &Field, value: u64)

Visit an unsigned 64-bit integer value.
ยง

fn record_i128(&mut self, field: &Field, value: i128)

Visit a signed 128-bit integer value.
ยง

fn record_u128(&mut self, field: &Field, value: u128)

Visit an unsigned 128-bit integer value.
ยง

fn record_bool(&mut self, field: &Field, value: bool)

Visit a boolean value.
ยง

fn record_str(&mut self, field: &Field, value: &str)

Visit a string value.
ยง

fn record_bytes(&mut self, field: &Field, value: &[u8])

Visit a byte slice.
ยง

fn record_error(&mut self, field: &Field, value: &(dyn Error + 'static))

Records a type implementing Error. Read more
ยง

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<F, R> Component<EmptyPropsBuilder> for F
where F: FnOnce() -> R,

ยง

impl<P, F, R> Component<P> for F
where F: FnOnce(P) -> R, P: Props,

ยง

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

ยง

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

ยง

impl<I, O, E, P> ModalParser<I, O, E> for P
where P: Parser<I, O, ErrMode<E>>,

ยง

impl<I, O, E, P> ModalParser<I, O, E> for P
where P: Parser<I, O, E>,