#[non_exhaustive]pub struct DynTrait {
pub predicates: &'static [DynTraitPredicate],
}🔬This is a nightly-only experimental API. (
type_info #146922)Expand description
Compile-time type information about dynamic traits. FIXME(#146922): Add super traits and generics
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.predicates: &'static [DynTraitPredicate]🔬This is a nightly-only experimental API. (
type_info #146922)The predicates of a dynamic trait.
Trait Implementations§
Auto Trait Implementations§
impl Forget for DynTrait
impl Freeze for DynTraitwhere
&'static [DynTraitPredicate]: Freeze,
impl Move for DynTrait
impl RefUnwindSafe for DynTrait
impl Send for DynTraitwhere
&'static [DynTraitPredicate]: Send,
impl Sync for DynTrait
impl Unpin for DynTraitwhere
&'static [DynTraitPredicate]: Unpin,
impl UnsafeUnpin for DynTraitwhere
&'static [DynTraitPredicate]: UnsafeUnpin,
impl UnwindSafe for DynTraitwhere
&'static [DynTraitPredicate]: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
🔬This is a nightly-only experimental API. (
core_io_internals)Returns a lower bound on the number of elements this container-like item
contains.
For example, an array
[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more