pub unsafe trait Content {
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut Self>;
fn is_size_suitable(_: usize) -> bool;
fn indiv_size() -> usize;
}
Expand description
Trait for types of data that can be mapped.
Required Methods
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut Self>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut Self>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(_: usize) -> bool
fn is_size_suitable(_: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.