Home
last modified time | relevance | path

Searched refs:as_ref (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.6/rust/kernel/sync/
Darc.rs267 unsafe { &self.ptr.as_ref().data } in deref()
272 fn as_ref(&self) -> &T { in as_ref() method
282 unsafe { bindings::refcount_inc(self.ptr.as_ref().refcount.get()) }; in clone()
295 let refcount = unsafe { self.ptr.as_ref() }.refcount.get(); in drop()
435 unsafe { &self.inner.as_ref().data } in deref()
/Linux-v6.6/rust/kernel/
Dtypes.rs185 &self.0.as_ref().unwrap().0 in deref()
362 unsafe { self.ptr.as_ref() } in deref()
Dstr.rs273 fn as_ref(&self) -> &BStr { in as_ref() method
/Linux-v6.6/rust/alloc/vec/
Ddrain.rs68 unsafe { self.vec.as_ref().allocator() } in allocator()
143 fn as_ref(&self) -> &[T] { in as_ref() method
Dinto_iter.rs175 fn as_ref(&self) -> &[T] { in as_ref() method
Dmod.rs3344 fn as_ref(&self) -> &Vec<T, A> { in as_ref() method
3358 fn as_ref(&self) -> &[T] { in as_ref() method
/Linux-v6.6/rust/alloc/
Dalloc.rs351 let size = size_of_val(ptr.as_ref()); in box_free()
352 let align = min_align_of_val(ptr.as_ref()); in box_free()
Dboxed.rs2054 fn as_ref(&self) -> &T { in as_ref() method
/Linux-v6.6/rust/macros/
Dmodule.rs176 let mut modinfo = ModInfoBuilder::new(info.name.as_ref()); in module()