#[non_exhaustive]pub struct DynTrait {
pub predicates: &'static [DynTraitPredicate],
}🔬This is a nightly-only experimental API. (
type_info)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)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§
impl<T> AnySend for T
impl<T> AnySendSync for T
impl<T> AnySync for T
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