Home
last modified time | relevance | path

Searched refs:b (Results 1 – 16 of 16) sorted by relevance

/rust/kernel/sync/
A Daref.rs141 fn from(b: &T) -> Self { in from()
142 b.inc_ref(); in from()
144 unsafe { Self::from_raw(NonNull::from(b)) } in from()
A Darc.rs624 fn from(b: ArcBorrow<'_, T>) -> Self { in from()
628 ManuallyDrop::new(unsafe { Arc::from_inner(b.inner) }) in from()
/rust/macros/
A Dconcat_idents.rs19 let b = expect_ident(&mut it); in concat_idents()
21 let res = Ident::new(&format!("{a}{b}"), b.span()); in concat_idents()
A Dpaste.rs95 (TokenTree::Punct(a), TokenTree::Punct(b)) in expand()
96 if a.as_char() == ':' && a.spacing() == Spacing::Joint && b.as_char() == ':' in expand()
/rust/pin-init/examples/
A Dbig_struct_in_place.rs11 b: u64, field
35 b: 186, in main()
A Dlinked_list.rs152 stack_pin_init!(let b = ListHead::insert_next(&a)); in main()
154 stack_pin_init!(let d = ListHead::insert_next(&b)); in main()
155 let e = Box::pin_init(ListHead::insert_next(&b))?; in main()
/rust/kernel/alloc/
A Dkbox.rs202 pub fn into_raw(b: Self) -> *mut T { in into_raw()
203 ManuallyDrop::new(b).0.as_ptr() in into_raw()
210 pub fn leak<'a>(b: Self) -> &'a mut T { in leak()
213 unsafe { &mut *Box::into_raw(b) } in leak()
256 let b = Self::new_uninit(flags)?; in new()
257 Ok(Box::write(b, x)) in new()
331 pub fn into_inner(b: Self) -> T { in into_inner()
333 let value = unsafe { core::ptr::read(&*b) }; in into_inner()
334 let _ = Self::forget_contents(b); in into_inner()
348 fn from(b: Box<T, A>) -> Self { in from()
[all …]
A Dkvec.rs59 Ok(b) => Ok($crate::alloc::KVec::from($crate::alloc::KBox::write(b, [$($x),+]))),
841 fn from(b: Box<[T; N], A>) -> Vec<T, A> { in from()
842 let len = b.len();
843 let ptr = Box::into_raw(b);
/rust/kernel/
A Djump_label.rs72 pub const fn bool_to_int(b: bool) -> i32 { in bool_to_int()
73 b as i32 in bool_to_int()
A Dstr.rs68 for &b in &self.0 { in fmt()
69 match b { in fmt()
75 0x20..=0x7e => f.write_char(b as char)?, in fmt()
101 for &b in &self.0 { in fmt()
102 match b { in fmt()
111 0x20..=0x7e => f.write_char(b as char)?, in fmt()
A Dlist.rs981 pub struct CursorPeek<'a, 'b, T: ?Sized + ListItem<ID>, const ISNEXT: bool, const ID: u64> {
982 cursor: &'a mut Cursor<'b, T, ID>,
986 impl<'a, 'b, T: ?Sized + ListItem<ID>, const ISNEXT: bool, const ID: u64>
987 CursorPeek<'a, 'b, T, ISNEXT, ID>
1020 impl<'a, 'b, T: ?Sized + ListItem<ID>, const ISNEXT: bool, const ID: u64> core::ops::Deref
1021 for CursorPeek<'a, 'b, T, ISNEXT, ID>
A Drbtree.rs887 unsafe fn to_key_value<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, &'b V) { in to_key_value()
898 unsafe fn to_key_value_mut<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, &'b mut V) { in to_key_value_mut()
909 unsafe fn to_key_value_raw<'b>(node: NonNull<bindings::rb_node>) -> (&'b K, *mut V) { in to_key_value_raw()
/rust/pin-init/src/
A D__internal.rs199 b: String, in stack_init_reuse() field
205 b: "Hello".to_owned(), in stack_init_reuse()
212 b: "world!".to_owned(), in stack_init_reuse()
/rust/kernel/time/hrtimer/
A Dpin.rs82 type CallbackTarget<'b> = Self;
A Dpin_mut.rs86 type CallbackTarget<'b> = Self;
/rust/pin-init/
A DREADME.md87 b: u32,
92 b: 24,

Completed in 28 milliseconds