Home
last modified time | relevance | path

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

/openbmc/linux/rust/kernel/
H A Dtypes.rs48 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self; in from_foreign()
66 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign()
82 unsafe fn from_foreign(_: *const core::ffi::c_void) -> Self {} in from_foreign()
160 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data()
216 pub const fn new(value: T) -> Self { in new()
239 pub fn ffi_init(init_func: impl FnOnce(*mut T)) -> impl PinInit<Self> { in ffi_init()
297 unsafe fn dec_ref(obj: NonNull<Self>); in dec_ref()
339 pub unsafe fn from_raw(ptr: NonNull<T>) -> Self { in from_raw()
350 fn clone(&self) -> Self { in clone()
367 fn from(b: &T) -> Self { in from()
H A Dinit.rs818 pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> where F: FnOnce(Pin<&mut T>) -> Result<(), E>, pin_chain() argument
920 chain<F>(self, f: F) -> ChainInit<Self, F, T, E> where F: FnOnce(&mut T) -> Result<(), E>, chain() argument
1118 try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> where E: From<AllocError> try_pin_init() argument
1138 try_init<E>(init: impl Init<T, E>) -> Result<Self, E> where E: From<AllocError> try_init() argument
1157 try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> where E: From<AllocError>, try_pin_init() argument
1171 try_init<E>(init: impl Init<T, E>) -> Result<Self, E> where E: From<AllocError>, try_init() argument
1187 try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> where E: From<AllocError>, try_pin_init() argument
1201 try_init<E>(init: impl Init<T, E>) -> Result<Self, E> where E: From<AllocError>, try_init() argument
1251 drop(self: Pin<&mut Self>, only_call_from_drop: __internal::OnlyCallFromDrop) drop() argument
[all...]
H A Dstr.rs98 pub unsafe fn from_char_ptr<'a>(ptr: *const core::ffi::c_char) -> &'a Self { in from_char_ptr()
113 pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, CStrConvertError> { in from_bytes_with_nul()
419 pub(crate) unsafe fn from_ptrs(pos: *mut u8, end: *mut u8) -> Self { in from_ptrs()
434 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
496 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
553 pub fn try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> { in try_from_fmt()
H A Dlib.rs70 fn init(module: &'static ThisModule) -> error::Result<Self>; in init()
H A Dtask.rs157 unsafe fn dec_ref(obj: ptr::NonNull<Self>) { in dec_ref()
/openbmc/linux/rust/kernel/sync/
H A Darc.rs165 pub fn try_new(contents: T) -> Result<Self, AllocError> { in try_new()
210 unsafe fn from_inner(inner: NonNull<ArcInner<T>>) -> Self { in from_inner()
231 pub fn ptr_eq(this: &Self, other: &Self) -> bool { in ptr_eq()
253 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign()
278 fn clone(&self) -> Self { in clone()
311 fn from(item: UniqueArc<T>) -> Self { in from()
317 fn from(item: Pin<UniqueArc<T>>) -> Self { in from()
394 fn clone(&self) -> Self { in clone()
409 unsafe fn new(inner: NonNull<ArcInner<T>>) -> Self { in new()
419 fn from(b: ArcBorrow<'_, T>) -> Self { in from()
[all …]
H A Dlock.rs103 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
184 pub(crate) unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()
H A Dlocked_by.rs99 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new()
H A Dcondvar.rs95 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
/openbmc/linux/rust/alloc/
H A Dslice.rs118 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> in to_vec()
126 default fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
163 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
463 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec()
704 fn join(slice: &Self, sep: Separator) -> Self::Output; in join()
727 fn join(slice: &Self, sep: &T) -> Vec<T> { in join()
750 fn join(slice: &Self, sep: &[T]) -> Vec<T> { in join()
H A Dboxed.rs219 pub fn new(x: T) -> Self { in new()
306 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new()
410 pub fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
862 pub fn write(mut boxed: Self, value: T) -> Box<T, A> { in write()
954 pub unsafe fn from_raw(raw: *mut T) -> Self { in from_raw()
1010 pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Self { in from_raw_in()
1297 fn clone(&self) -> Self { in clone()
1324 fn clone_from(&mut self, source: &Self) { in clone_from()
1332 fn clone(&self) -> Self { in clone()
1458 fn from(t: T) -> Self { in from()
[all …]
H A Draw_vec.rs93 pub fn with_capacity(capacity: usize) -> Self { in with_capacity()
101 pub fn with_capacity_zeroed(capacity: usize) -> Self { in with_capacity_zeroed()
122 pub const fn new_in(alloc: A) -> Self { in new_in()
131 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
138 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
146 pub fn with_capacity_zeroed_in(capacity: usize, alloc: A) -> Self { in with_capacity_zeroed_in()
177 fn allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Self { in allocate_in()
212 … fn try_allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Result<Self, TryReserveError> { in try_allocate_in()
247 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
H A Dalloc.rs410 unsafe fn write_clone_into_raw(&self, target: *mut Self); in write_clone_into_raw()
415 default unsafe fn write_clone_into_raw(&self, target: *mut Self) { in write_clone_into_raw()
424 unsafe fn write_clone_into_raw(&self, target: *mut Self) { in write_clone_into_raw()
/openbmc/linux/rust/alloc/collections/
H A Dmod.rs118 fn from(kind: TryReserveErrorKind) -> Self { in from()
127 fn from(_: LayoutError) -> Self { in from()
/openbmc/linux/rust/kernel/init/
H A D__internal.rs108 fn clone(&self) -> Self { in clone()
165 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
203 pub unsafe fn new(ptr: *mut T) -> Self { in new()
/openbmc/linux/rust/alloc/vec/
H A Dmod.rs481 pub fn with_capacity(capacity: usize) -> Self { in with_capacity()
536 pub fn try_with_capacity(capacity: usize) -> Result<Self, TryReserveError> { in try_with_capacity()
643 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts()
665 pub const fn new_in(alloc: A) -> Self { in new_in()
727 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
787 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
901 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
2070 pub fn append(&mut self, other: &mut Self) { in append()
2871 fn clone(&self) -> Self { in clone()
2881 fn clone(&self) -> Self { in clone()
[all …]
H A Dset_len_on_drop.rs15 pub(super) fn new(len: &'a mut usize) -> Self { in new()
H A Dinto_iter.rs390 fn clone(&self) -> Self { in clone()
394 fn clone(&self) -> Self { in clone()
/openbmc/linux/samples/rust/
H A Drust_minimal.rs20 fn init(_module: &'static ThisModule) -> Result<Self> { in init()
H A Drust_print.rs43 fn init(_module: &'static ThisModule) -> Result<Self> { in init()
/openbmc/linux/rust/macros/
H A Dmodule.rs32 fn new(module: &'a str) -> Self { in new()
103 fn parse(it: &mut token_stream::IntoIter) -> Self { in parse()
/openbmc/sdbusplus/include/sdbusplus/async/
H A Dserver.hpp24 using Self = server<Instance, Types...>; typedef in sdbusplus::async::server::server
H A Dclient.hpp32 using Self = client<S, P, Preserved, Types...>; typedef in sdbusplus::async::client::client
/openbmc/qemu/rust/qemu-api-macros/src/
H A Dlib.rs16 fn from(err: CompileError) -> Self { in from()
/openbmc/qemu/rust/hw/char/pl011/src/
H A Dlib.rs121 fn try_from(value: u64) -> Result<Self, Self::Error> { in try_from()
427 fn from(val: Mode) -> Self { in from()