Trait push_while_ref::StaticType[][src]

pub unsafe trait StaticType {
    type Ref: ?Sized;
    fn ref_ptr(&self) -> *const Self::Ref;
}

A value that is fixed in memory.

If you implement this you need to guarantee that Self and Ref does not move in memory

Most probably it should be allocated on the heap

Associated Types

Loading content...

Required methods

fn ref_ptr(&self) -> *const Self::Ref[src]

the caller of ref_ptr promises to not use the ptr after Self goes out of scope and to use the ptr only to cast to a references

Loading content...

Implementations on Foreign Types

impl<T: ?Sized> StaticType for Box<T>[src]

type Ref = T

Loading content...

Implementors

Loading content...