Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. foreign_box
  6. upcast_foreign_rc

upcast_foreign_rc

Macro upcast_foreign_rc 

Source
macro_rules! upcast_foreign_rc {
    ($rc:expr => dyn $trait:ident $(<$($trait_tyvar:ident),*>)? ) => { ... };
}
Expand description

Upcasts a ForeignRc from a concrete type to a dyn Trait that the concrete type implements