pub trait MaybeTypeOf {
// Required method
fn maybe_type_of() -> Result<DocType>;
}
Expand description
A type that might or might not have a concrete type.
Required Methods§
Sourcefn maybe_type_of() -> Result<DocType>
fn maybe_type_of() -> Result<DocType>
Type information for the given type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl MaybeTypeOf for Ordering
impl MaybeTypeOf for Ordering
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for bool
impl MaybeTypeOf for bool
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for char
impl MaybeTypeOf for char
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for f32
impl MaybeTypeOf for f32
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for f64
impl MaybeTypeOf for f64
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for i8
impl MaybeTypeOf for i8
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for i16
impl MaybeTypeOf for i16
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for i32
impl MaybeTypeOf for i32
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for i64
impl MaybeTypeOf for i64
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for i128
impl MaybeTypeOf for i128
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for isize
impl MaybeTypeOf for isize
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for str
impl MaybeTypeOf for str
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for u8
impl MaybeTypeOf for u8
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for u16
impl MaybeTypeOf for u16
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for u32
impl MaybeTypeOf for u32
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for u64
impl MaybeTypeOf for u64
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for u128
impl MaybeTypeOf for u128
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for ()
impl MaybeTypeOf for ()
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for usize
impl MaybeTypeOf for usize
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for Error
impl MaybeTypeOf for Error
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for String
Available on crate feature alloc
only.
impl MaybeTypeOf for String
Available on crate feature
alloc
only.fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for ParseCharError
impl MaybeTypeOf for ParseCharError
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for Error
impl MaybeTypeOf for Error
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for ParseFloatError
impl MaybeTypeOf for ParseFloatError
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for ParseIntError
impl MaybeTypeOf for ParseIntError
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for Utf8Error
impl MaybeTypeOf for Utf8Error
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for Error
Available on crate feature std
only.
impl MaybeTypeOf for Error
Available on crate feature
std
only.fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for [u8]
impl MaybeTypeOf for [u8]
fn maybe_type_of() -> Result<DocType>
Source§impl MaybeTypeOf for [Value]
impl MaybeTypeOf for [Value]
fn maybe_type_of() -> Result<DocType>
Source§impl<A> MaybeTypeOf for (A,)where
A: MaybeTypeOf,
impl<A> MaybeTypeOf for (A,)where
A: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B> MaybeTypeOf for (A, B)where
A: MaybeTypeOf,
B: MaybeTypeOf,
impl<A, B> MaybeTypeOf for (A, B)where
A: MaybeTypeOf,
B: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C> MaybeTypeOf for (A, B, C)
impl<A, B, C> MaybeTypeOf for (A, B, C)
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D> MaybeTypeOf for (A, B, C, D)
impl<A, B, C, D> MaybeTypeOf for (A, B, C, D)
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E> MaybeTypeOf for (A, B, C, D, E)
impl<A, B, C, D, E> MaybeTypeOf for (A, B, C, D, E)
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F> MaybeTypeOf for (A, B, C, D, E, F)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
impl<A, B, C, D, E, F> MaybeTypeOf for (A, B, C, D, E, F)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F, G> MaybeTypeOf for (A, B, C, D, E, F, G)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
impl<A, B, C, D, E, F, G> MaybeTypeOf for (A, B, C, D, E, F, G)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F, G, H> MaybeTypeOf for (A, B, C, D, E, F, G, H)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
impl<A, B, C, D, E, F, G, H> MaybeTypeOf for (A, B, C, D, E, F, G, H)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F, G, H, I> MaybeTypeOf for (A, B, C, D, E, F, G, H, I)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
impl<A, B, C, D, E, F, G, H, I> MaybeTypeOf for (A, B, C, D, E, F, G, H, I)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F, G, H, I, J> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
impl<A, B, C, D, E, F, G, H, I, J> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F, G, H, I, J, K> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
impl<A, B, C, D, E, F, G, H, I, J, K> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K, L)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
L: MaybeTypeOf,
impl<A, B, C, D, E, F, G, H, I, J, K, L> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K, L)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
L: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
L: MaybeTypeOf,
M: MaybeTypeOf,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
L: MaybeTypeOf,
M: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
L: MaybeTypeOf,
M: MaybeTypeOf,
N: MaybeTypeOf,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
L: MaybeTypeOf,
M: MaybeTypeOf,
N: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
L: MaybeTypeOf,
M: MaybeTypeOf,
N: MaybeTypeOf,
O: MaybeTypeOf,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
L: MaybeTypeOf,
M: MaybeTypeOf,
N: MaybeTypeOf,
O: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
L: MaybeTypeOf,
M: MaybeTypeOf,
N: MaybeTypeOf,
O: MaybeTypeOf,
P: MaybeTypeOf,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> MaybeTypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)where
A: MaybeTypeOf,
B: MaybeTypeOf,
C: MaybeTypeOf,
D: MaybeTypeOf,
E: MaybeTypeOf,
F: MaybeTypeOf,
G: MaybeTypeOf,
H: MaybeTypeOf,
I: MaybeTypeOf,
J: MaybeTypeOf,
K: MaybeTypeOf,
L: MaybeTypeOf,
M: MaybeTypeOf,
N: MaybeTypeOf,
O: MaybeTypeOf,
P: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<C, B> MaybeTypeOf for ControlFlow<C, B>where
C: MaybeTypeOf,
B: MaybeTypeOf,
impl<C, B> MaybeTypeOf for ControlFlow<C, B>where
C: MaybeTypeOf,
B: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<T> MaybeTypeOf for Option<T>where
T: MaybeTypeOf,
impl<T> MaybeTypeOf for Option<T>where
T: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<T> MaybeTypeOf for &Twhere
T: ?Sized + MaybeTypeOf,
impl<T> MaybeTypeOf for &Twhere
T: ?Sized + MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<T> MaybeTypeOf for &mut Twhere
T: ?Sized + MaybeTypeOf,
impl<T> MaybeTypeOf for &mut Twhere
T: ?Sized + MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Source§impl<T> MaybeTypeOf for Vec<T>where
T: MaybeTypeOf,
Available on crate feature alloc
only.
impl<T> MaybeTypeOf for Vec<T>where
T: MaybeTypeOf,
Available on crate feature
alloc
only.fn maybe_type_of() -> Result<DocType>
Source§impl<T> MaybeTypeOf for HashMap<String, T>where
T: MaybeTypeOf,
Available on crate feature std
only.
impl<T> MaybeTypeOf for HashMap<String, T>where
T: MaybeTypeOf,
Available on crate feature
std
only.fn maybe_type_of() -> Result<DocType>
Source§impl<T> MaybeTypeOf for HashMap<String, T>where
T: MaybeTypeOf,
Available on crate feature std
only.
impl<T> MaybeTypeOf for HashMap<String, T>where
T: MaybeTypeOf,
Available on crate feature
std
only.fn maybe_type_of() -> Result<DocType>
Source§impl<T, E> MaybeTypeOf for Result<T, E>where
T: MaybeTypeOf,
E: MaybeTypeOf,
impl<T, E> MaybeTypeOf for Result<T, E>where
T: MaybeTypeOf,
E: MaybeTypeOf,
fn maybe_type_of() -> Result<DocType>
Implementors§
impl MaybeTypeOf for rune::runtime::ControlFlow
impl MaybeTypeOf for GeneratorState
impl MaybeTypeOf for FromUtf8Error
Available on crate feature
alloc
only.