Struct rust_examples::rc::Container [−][src]
pub struct Container<'a> {
pub owned: Data,
pub stack_shared: &'a Data,
pub heap_owned: Box<Data>,
pub heap_shared: Rc<Data>,
}Expand description
Fields
owned: DataOwned data located on the stack
Immutably shared data located on the stack that must outlive container’s lifetime 'a
heap_owned: Box<Data>Pointer to owned data located on the heap
Reference counting pointer to shared data located on the heap
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Container<'a>
impl<'a> UnwindSafe for Container<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
