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()
460 NonNull::new(best.as_ptr()).map(|current| { in cursor_lower_bound_mut()
481 NonNull::new(best.as_ptr()).map(|current| { in cursor_lower_bound()
491 fn find_best_match(&self, key: &K) -> Option<NonNull<bindings::rb_node>> { in find_best_match()
494 let mut best_links: Option<NonNull<bindings::rb_node>> = None; in find_best_match()
508 best_links = Some(unsafe { NonNull::new_unchecked(&mut (*this).links) }); in find_best_match()
522 best_links = Some(unsafe { NonNull::new_unchecked(&mut (*this).links) }); in find_best_match()
782 current: NonNull<bindings::rb_node>,
813 current: NonNull<bindings::rb_node>,
837 unsafe fn to_key_value<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, &'b V) { in to_key_value()
869 fn get_neighbor_raw(&self, direction: Direction) -> Option<NonNull<bindings::rb_node>> { in get_neighbor_raw()
878 NonNull::new(neighbor) in get_neighbor_raw()
1021 fn get_neighbor_raw(&self, direction: Direction) -> Option<NonNull<bindings::rb_node>> { in get_neighbor_raw()
1030 NonNull::new(neighbor) in get_neighbor_raw()
1037 unsafe fn to_key_value<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, &'b V) { in to_key_value()
1048 unsafe fn to_key_value_mut<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, &'b mut V) { in to_key_value_mut()
1059 unsafe fn to_key_value_raw<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, *mut V) { in to_key_value_raw()