Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/ptr_meta/src/impls.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / ptr_meta / src / impls.rs` 49 lines ยท 1530 bytes Raw Blame History 1 use core::{any::Any, error::Error}; 2 3 use crate::{DynMetadata, Pointee}; 4 5 // SAFETY: The metadata type of `dyn Any` is `DynMetadata`. 6 unsafe impl Pointee for dyn Any { 7 type Metadata = DynMetadata; 8 } 9 10 // SAFETY: The metadata type of `dyn Any + Send` is 11 // `DynMetadata`. 12 unsafe impl Pointee for dyn Any + Send { 13 type Metadata = DynMetadata; 14 } 15 16 // SAFETY: The metadata type of `dyn Any + Sync` is 17 // `DynMetadata`. 18 unsafe impl Pointee for dyn Any + Sync { 19 type Metadata = DynMetadata; 20 } 21 22 // SAFETY: The metadata type of `dyn Any + Send + Sync` is 23 // `DynMetadata`. 24 unsafe impl Pointee for dyn Any + Send + Sync { 25 type Metadata = DynMetadata; 26 } 27 28 // SAFETY: The metadata type of `dyn Error` is `DynMetadata`. 29 unsafe impl Pointee for dyn Error { 30 type Metadata = DynMetadata; 31 } 32 33 // SAFETY: The metadata type of `dyn Error + Send` is 34 // `DynMetadata`. 35 unsafe impl Pointee for dyn Error + Send { 36 type Metadata = DynMetadata; 37 } 38 39 // SAFETY: The metadata type of `dyn Error + Sync` is 40 // `DynMetadata`. 41 unsafe impl Pointee for dyn Error + Sync { 42 type Metadata = DynMetadata; 43 } 44 45 // SAFETY: The metadata type of `dyn Error + Send + Sync` is 46 // `DynMetadata`. 47 unsafe impl Pointee for dyn Error + Send + Sync { 48 type Metadata = DynMetadata; 49 }