Home
last modified time | relevance | path

Searched defs:Self (Results 1 – 14 of 14) sorted by relevance

/linux-6.3-rc2/rust/kernel/sync/
A Darc.rs152 pub fn try_new(contents: T) -> Result<Self> { in try_new()
175 unsafe fn from_inner(inner: NonNull<ArcInner<T>>) -> Self { in from_inner()
214 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign()
233 fn clone(&self) -> Self { in clone()
266 fn from(item: UniqueArc<T>) -> Self { in from()
272 fn from(item: Pin<UniqueArc<T>>) -> Self { in from()
347 fn clone(&self) -> Self { in clone()
362 unsafe fn new(inner: NonNull<ArcInner<T>>) -> Self { in new()
372 fn from(b: ArcBorrow<'_, T>) -> Self { in from()
472 pub fn try_new(value: T) -> Result<Self> { in try_new()
[all …]
/linux-6.3-rc2/rust/kernel/
A Dtypes.rs47 unsafe fn borrow_mut(ptr: *const core::ffi::c_void) -> ScopeGuard<Self, fn(Self)> { in borrow_mut()
63 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self; in from_foreign()
81 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign()
97 unsafe fn from_foreign(_: *const core::ffi::c_void) -> Self {} in from_foreign()
175 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data()
228 pub const fn new(value: T) -> Self { in new()
A Dstr.rs97 pub unsafe fn from_char_ptr<'a>(ptr: *const core::ffi::c_char) -> &'a Self { in from_char_ptr()
112 pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, CStrConvertError> { in from_bytes_with_nul()
410 pub(crate) unsafe fn from_ptrs(pos: *mut u8, end: *mut u8) -> Self { in from_ptrs()
425 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
487 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
544 pub fn try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> { in try_from_fmt()
A Dlib.rs62 fn init(module: &'static ThisModule) -> error::Result<Self>; in init()
/linux-6.3-rc2/rust/alloc/
A Draw_vec.rs94 pub fn with_capacity(capacity: usize) -> Self { in with_capacity()
102 pub fn with_capacity_zeroed(capacity: usize) -> Self { in with_capacity_zeroed()
123 pub const fn new_in(alloc: A) -> Self { in new_in()
132 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
139 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
147 pub fn with_capacity_zeroed_in(capacity: usize, alloc: A) -> Self { in with_capacity_zeroed_in()
178 fn allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Self { in allocate_in()
213 … fn try_allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Result<Self, TryReserveError> { in try_allocate_in()
248 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
A Dboxed.rs203 pub fn new(x: T) -> Self { in new()
284 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new()
929 pub unsafe fn from_raw(raw: *mut T) -> Self { in from_raw()
1239 fn clone(&self) -> Self { in clone()
1266 fn clone_from(&mut self, source: &Self) { in clone_from()
1274 fn clone(&self) -> Self { in clone()
1400 fn from(t: T) -> Self { in from()
1414 fn from(boxed: Box<T, A>) -> Self { in from()
1537 fn from(s: Box<str, A>) -> Self { in from()
1911 fn clone(&self) -> Self { in clone()
[all …]
A Dslice.rs183 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> in to_vec()
191 default fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
228 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
528 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec()
769 fn join(slice: &Self, sep: Separator) -> Self::Output; in join()
792 fn join(slice: &Self, sep: &T) -> Vec<T> { in join()
815 fn join(slice: &Self, sep: &[T]) -> Vec<T> { in join()
A Dalloc.rs422 unsafe fn write_clone_into_raw(&self, target: *mut Self); in write_clone_into_raw()
427 default unsafe fn write_clone_into_raw(&self, target: *mut Self) { in write_clone_into_raw()
436 unsafe fn write_clone_into_raw(&self, target: *mut Self) { in write_clone_into_raw()
/linux-6.3-rc2/rust/alloc/vec/
A Dmod.rs473 pub fn with_capacity(capacity: usize) -> Self { in with_capacity()
611 pub const fn new_in(alloc: A) -> Self { in new_in()
1904 pub fn append(&mut self, other: &mut Self) { in append()
2626 fn clone_from(this: &mut Self, other: &Self); in clone_from()
2631 default fn clone_from(this: &mut Self, other: &Self) { in clone_from()
2647 fn clone_from(this: &mut Self, other: &Self) { in clone_from()
2657 fn clone(&self) -> Self { in clone()
2667 fn clone(&self) -> Self { in clone()
2672 fn clone_from(&mut self, other: &Self) { in clone_from()
3146 fn from(s: Box<[T], A>) -> Self { in from()
[all …]
A Dinto_iter.rs308 fn clone(&self) -> Self { in clone()
312 fn clone(&self) -> Self { in clone()
/linux-6.3-rc2/rust/alloc/collections/
A Dmod.rs118 fn from(kind: TryReserveErrorKind) -> Self { in from()
127 fn from(_: LayoutError) -> Self { in from()
/linux-6.3-rc2/rust/macros/
A Dmodule.rs14 fn new(module: &'a str) -> Self { in new()
85 fn parse(it: &mut token_stream::IntoIter) -> Self { in parse()
/linux-6.3-rc2/samples/rust/
A Drust_print.rs19 fn init(_module: &'static ThisModule) -> Result<Self> { in init()
A Drust_minimal.rs20 fn init(_module: &'static ThisModule) -> Result<Self> { in init()

Completed in 35 milliseconds