collections::binary_heap::BinaryHeapPlace
Struct collections::binary_heap::BinaryHeapPlace
pub struct BinaryHeapPlace<'a, T: 'a> where T: Clone + Ord, { /* fields omitted */ }
Trait Implementations
impl<'a, T: Clone + Ord + Debug> Debug for BinaryHeapPlace<'a, T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter.
impl<'a, T> Place<T> for BinaryHeapPlace<'a, T> where
T: Clone + Ord,
[src]
T: Clone + Ord,
fn pointer(&mut self) -> *mut T
Returns the address where the input value will be written. Note that the data at this address is generally uninitialized, and thus one should use ptr::write
for initializing it. Read more
impl<'a, T> InPlace<T> for BinaryHeapPlace<'a, T> where
T: Clone + Ord,
[src]
T: Clone + Ord,
type Owner = &'a T
Owner
is the type of the end value of PLACE <- EXPR
Read more
unsafe fn finalize(self) -> &'a T
Converts self into the final value, shifting deallocation/cleanup responsibilities (if any remain), over to the returned instance of Owner
and forgetting self. Read more
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/collections/binary_heap/struct.BinaryHeapPlace.html