Lines Matching refs:NonNull
14 ptr::{addr_of_mut, from_mut, NonNull},
250 NonNull::new(current).map(|current| { in cursor_front_mut()
265 NonNull::new(current).map(|current| { in cursor_front()
280 NonNull::new(current).map(|current| { in cursor_back_mut()
295 NonNull::new(current).map(|current| { in cursor_back()
463 NonNull::new(best.as_ptr()).map(|current| { in cursor_lower_bound_mut()
484 NonNull::new(best.as_ptr()).map(|current| { in cursor_lower_bound()
494 fn find_best_match(&self, key: &K) -> Option<NonNull<bindings::rb_node>> { in find_best_match()
497 let mut best_links: Option<NonNull<bindings::rb_node>> = None; in find_best_match()
511 best_links = Some(unsafe { NonNull::new_unchecked(&mut (*this).links) }); in find_best_match()
525 best_links = Some(unsafe { NonNull::new_unchecked(&mut (*this).links) }); in find_best_match()
785 current: NonNull<bindings::rb_node>,
816 current: NonNull<bindings::rb_node>,
840 unsafe fn to_key_value<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, &'b V) { in to_key_value()
872 fn get_neighbor_raw(&self, direction: Direction) -> Option<NonNull<bindings::rb_node>> { in get_neighbor_raw()
881 NonNull::new(neighbor) in get_neighbor_raw()
1024 fn get_neighbor_raw(&self, direction: Direction) -> Option<NonNull<bindings::rb_node>> { in get_neighbor_raw()
1033 NonNull::new(neighbor) in get_neighbor_raw()
1040 unsafe fn to_key_value<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, &'b V) { in to_key_value()
1051 unsafe fn to_key_value_mut<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, &'b mut V) { in to_key_value_mut()
1062 unsafe fn to_key_value_raw<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, *mut V) { in to_key_value_raw()