fn new() -> Box<Self> {
        let mut leaf = Box::<Self>::new_uninit();
        // SAFE: `leaf` is a valid pointer and access to `children` are controlled by
        // `common.len`.
        unsafe {
            CommonData::init(ptr::addr_of_mut!((*leaf.as_mut_ptr()).common));
            ptr::addr_of_mut!((*leaf.as_mut_ptr()).prev).write(None);
            ptr::addr_of_mut!((*leaf.as_mut_ptr()).next).write(None);
            leaf.assume_init()
        }
    }
/// Creates a new leaf node.
Creates a new leaf node.
Creates a new leaf node .
fn new() -> Box<Self> {
        let mut leaf = Box::<Self>::new_uninit();
        // SAFE: `leaf` is a valid pointer and access to `children` are controlled by
        // `common.len`.
        unsafe {
            CommonData::init(ptr::addr_of_mut!((*leaf.as_mut_ptr()).common));
            ptr::addr_of_mut!((*leaf.as_mut_ptr()).prev).write(None);
            ptr::addr_of_mut!((*leaf.as_mut_ptr()).next).write(None);
            leaf.assume_init()
        }
    }
fn new ( ) -> Box < Self > { let mut leaf = Box :: < Self > :: new_uninit ( ) ; // SAFE: `leaf` is a valid pointer and access to `children` are controlled by // `common.len`. unsafe { CommonData :: init ( ptr :: addr_of_mut ! ( ( leaf as_mut_ptr ( ) ) common ) ) ; ptr :: addr_of_mut ! ( ( leaf as_mut_ptr ( ) ) prev ) . write ( None ) ; ptr :: addr_of_mut ! ( ( leaf as_mut_ptr ( ) ) next ) . write ( None ) ; leaf . assume_init ( ) } }
Creates a new leaf node.
Creates a new leaf node .