Skip to main content

Asked

Trait Asked 

Source
pub trait Asked: Query {
    type Ask: Query + ?Sized;
}
Expand description

How a field’s type is written in a query.

An associated type rather than a Borrow bound on the call, because a Borrow bound leaves the compiler two ways to read "a".."z" and it picks the wrong one. This way the borrowed form follows from the field’s type and there is nothing to infer.

Required Associated Types§

Source

type Ask: Query + ?Sized

The borrowed form, which is str for a String and the type itself for everything else.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Asked for String

Source§

impl Asked for bool

Source§

impl Asked for f32

Source§

impl Asked for f64

Source§

impl Asked for i8

Source§

impl Asked for i16

Source§

impl Asked for i32

Source§

impl Asked for i64

Source§

impl Asked for u8

Source§

impl Asked for u16

Source§

impl Asked for u32

Source§

impl Asked for u64

Implementors§