Home
last modified time | relevance | path

Searched refs:Sized (Results 1 – 25 of 51) sorted by relevance

123

/linux/rust/pin-init/src/
H A D__internal.rs20 pub struct PhantomInvariant<T: ?Sized>(PhantomData<fn(T) -> T>);
22 impl<T: ?Sized> Clone for PhantomInvariant<T> {
29 impl<T: ?Sized> Copy for PhantomInvariant<T> {}
31 impl<T: ?Sized> Default for PhantomInvariant<T> {
38 impl<T: ?Sized> PhantomInvariant<T> {
105 pub struct AllData<T: ?Sized>(PhantomInvariant<T>);
107 impl<T: ?Sized> Clone for AllData<T> {
113 impl<T: ?Sized> Copy for AllData<T> {}
115 impl<T: ?Sized> AllData<T> {
127 unsafe impl<T: ?Sized> HasInitDat in make_closure()
[all...]
H A Dlib.rs917 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized {
955 pub struct ChainPinInit<I, F, T: ?Sized, E>(I, F, __internal::PhantomInvariant<(E, T)>); in pin_chain()
961 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E>
1016 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> {
1063 pub struct ChainInit<I, F, T: ?Sized, E>(I, F, __internal::PhantomInvariant<(E, T)>); in chain()
1068 unsafe impl<T: ?Sized, E, I, F> Init<T, E> for ChainInit<I, F, T, E>
1084 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E> in __init()
1099 struct InitClosure<F, T: ?Sized>(F, __internal::PhantomInvariant<T>); in __pinned_init()
1103 unsafe impl<T: ?Sized,
1115 pin_init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl PinInit<T, E> pin_init_from_closure() argument
1134 init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl Init<T, E> init_from_closure() argument
[all...]
/linux/rust/kernel/sync/
H A Dlocked_by.rs78 pub struct LockedBy<T: ?Sized, U: ?Sized> {
84 unsafe impl<T: ?Sized + Send, U: ?Sized> Send for LockedBy<T, U> {}
92 unsafe impl<T: ?Sized + Send, U: ?Sized> Sync for LockedBy<T, U> {}
114 impl<T: ?Sized, U> LockedBy<T, U> {
H A Dlock.rs106 pub struct Lock<T: ?Sized, B: Backend> {
123 unsafe impl<T: ?Sized + Send, B: Backend> Send for Lock<T, B> {}
127 unsafe impl<T: ?Sized + Send, B: Backend> Sync for Lock<T, B> {}
171 impl<T: ?Sized, B: Backend> Lock<T, B> {
201 pub struct Guard<'a, T: ?Sized, B: Backend> {
208 unsafe impl<T: Sync + ?Sized, B: Backend> Sync for Guard<'_, T, B> {}
210 impl<'a, T: ?Sized, B: Backend> Guard<'a, T, B> {
278 impl<T: ?Sized, B: Backend> core::ops::Deref for Guard<'_, T, B> { in deref()
288 impl<T: ?Sized, B: Backend> core::ops::DerefMut for Guard<'_, T, B> in deref_mut()
299 impl<T: ?Sized, in drop()
[all...]
H A Dcondvar.rs114 fn wait_internal<T: ?Sized, B: Backend>( in wait_internal() argument
145 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait() argument
156 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait_interruptible() argument
168 pub fn wait_interruptible_freezable<T: ?Sized, B: Backend>( in wait_interruptible_freezable() argument
186 pub fn wait_interruptible_timeout<T: ?Sized, B: Backend>( in wait_interruptible_timeout() argument
/linux/rust/kernel/
H A Dlist.rs173 /// struct DTWrap<T: ?Sized> {
189 /// impl{T: ?Sized} ListArcSafe<0> for DTWrap<T> { untracked; }
279 pub struct List<T: ?Sized + ListItem<ID>, const ID: u64 = 0> {
289 T: ?Sized + ListItem<ID>,
297 T: ?Sized + ListItem<ID>,
436 pub struct ListLinksSelfPtr<T: ?Sized, const ID: u64 = 0> {
442 // `ptr::null()` doesn't work for `T: ?Sized`. in new()
447 unsafe impl<T: ?Sized + Send, const ID: u64> Send for ListLinksSelfPtr<T, ID> {} in new()
453 unsafe impl<T: ?Sized + Sync, const ID: u64> Sync for ListLinksSelfPtr<T, ID> {} in new()
455 impl<T: ?Sized, cons
[all...]
H A Dfmt.rs60 impl<T: ?Sized + Display> Display for &T {
66 impl<T: ?Sized + Display> core::fmt::Display for Adapter<&T> {
105 {<T: ?Sized>} crate::sync::Arc<T> {where crate::sync::Arc<T>: core::fmt::Display},
106 {<T: ?Sized>} crate::sync::UniqueArc<T> {where crate::sync::UniqueArc<T>: core::fmt::Display},
H A Ddma.rs410 pub struct CoherentBox<T: KnownSize + ?Sized>(Coherent<T>);
536 impl<T: KnownSize + ?Sized> Deref for CoherentBox<T> {
549 impl<T: AsBytes + FromBytes + KnownSize + ?Sized> DerefMut for CoherentBox<T> {
560 impl<T: AsBytes + FromBytes + KnownSize + ?Sized> From<CoherentBox<T>> for Coherent<T> {
595 pub struct Coherent<T: KnownSize + ?Sized> {
602 impl<T: KnownSize + ?Sized> Coherent<T> {
964 impl<T: KnownSize + ?Sized> Drop for Coherent<T> {
984 unsafe impl<T: KnownSize + Send + ?Sized> Send for Coherent<T> {}
990 unsafe impl<T: KnownSize + ?Sized + AsBytes + FromBytes + Sync> Sync for Coherent<T> {}
992 impl<T: KnownSize + AsBytes + ?Sized> debugf
[all...]
H A Dnum.rs18 Sized
/linux/rust/syn/gen/
H A Dvisit_mut.rs960 V: VisitMut + ?Sized, in visit_abi_mut() argument
974 V: VisitMut + ?Sized, in visit_angle_bracketed_generic_arguments_mut() argument
988 V: VisitMut + ?Sized, in visit_arm_mut() argument
1004 V: VisitMut + ?Sized, in visit_assoc_const_mut()
1017 V: VisitMut + ?Sized, in visit_assoc_type_mut()
1030 V: VisitMut + ?Sized, in visit_attr_style_mut()
1043 V: VisitMut + ?Sized, in visit_attribute_mut()
1054 V: VisitMut + ?Sized, in visit_bare_fn_arg_mut()
1067 V: VisitMut + ?Sized, in visit_bare_variadic_mut()
1081 V: VisitMut + ?Sized, in visit_bin_op_mut()
[all …]
H A Dfold.rs1032 F: Fold + ?Sized, in fold_abi()
1046 F: Fold + ?Sized, in fold_angle_bracketed_generic_arguments()
1059 F: Fold + ?Sized, in fold_arm()
1074 F: Fold + ?Sized, in fold_assoc_const()
1087 F: Fold + ?Sized, in fold_assoc_type()
1100 F: Fold + ?Sized, in fold_attr_style()
1111 F: Fold + ?Sized, in fold_attribute()
1124 F: Fold + ?Sized, in fold_bare_fn_arg()
1136 F: Fold + ?Sized, in fold_bare_variadic()
1149 F: Fold + ?Sized, in fold_bin_op()
[all …]
H A Dvisit.rs952 V: Visit<'ast> + ?Sized, in visit_abi() argument
966 V: Visit<'ast> + ?Sized, in visit_angle_bracketed_generic_arguments() argument
980 V: Visit<'ast> + ?Sized, in visit_arm() argument
998 V: Visit<'ast> + ?Sized, in visit_assoc_const()
1011 V: Visit<'ast> + ?Sized, in visit_assoc_type()
1024 V: Visit<'ast> + ?Sized, in visit_attr_style()
1037 V: Visit<'ast> + ?Sized, in visit_attribute()
1048 V: Visit<'ast> + ?Sized, in visit_bare_fn_arg()
1063 V: Visit<'ast> + ?Sized, in visit_bare_variadic()
1079 V: Visit<'ast> + ?Sized, in visit_bin_op() argument
[all …]
/linux/rust/kernel/alloc/
H A Dkbox.rs104 pub struct Box<#[pointee] T: ?Sized, A: Allocator>(NonNull<T>, PhantomData<A>);
149 T: Send + ?Sized,
157 T: Sync + ?Sized,
164 T: ?Sized,
441 T: ?Sized, in write_init()
603 T: ?Sized,
617 T: ?Sized,
646 T: ?Sized,
673 T: ?Sized, in drop()
683 T: ?Sized in drop()
[all...]
/linux/rust/kernel/list/
H A Darc.rs166 T: ListArcSafe<ID> + ?Sized,
205 T: ListArcSafe<ID> + ?Sized,
216 T: ListArcSafe<ID> + ?Sized,
232 T: ListArcSafe<ID> + ?Sized,
414 T: ListArcSafe<ID> + ?Sized,
426 T: ListArcSafe<ID> + ?Sized,
438 T: ListArcSafe<ID> + ?Sized,
/linux/rust/quote/
H A Dto_tokens.rs70 Self: Sized, in into_token_stream()
76 impl<T: ?Sized + ToTokens> ToTokens for &T {
82 impl<T: ?Sized + ToTokens> ToTokens for &mut T {
88 impl<'a, T: ?Sized + ToOwned + ToTokens> ToTokens for Cow<'a, T> {
94 impl<T: ?Sized + ToTokens> ToTokens for Box<T> {
100 impl<T: ?Sized + ToTokens> ToTokens for Rc<T> {
H A Dident_fragment.rs27 impl<T: IdentFragment + ?Sized> IdentFragment for &T {
37 impl<T: IdentFragment + ?Sized> IdentFragment for &mut T {
64 T: IdentFragment + ToOwned + ?Sized,
H A Dspanned.rs24 impl<T: ?Sized + ToTokens> Spanned for T {
51 impl<T: ?Sized + ToTokens> Sealed for T {}
H A Druntime.rs71 pub trait RepIteratorExt: Iterator + Sized {
96 impl<T: ToTokens + ?Sized> RepToTokensExt for T {}
107 impl<'q, T: RepAsIteratorExt<'q> + ?Sized> RepAsIteratorExt<'q> for &T {
115 impl<'q, T: RepAsIteratorExt<'q> + ?Sized> RepAsIteratorExt<'q> for &mut T {
/linux/rust/syn/
H A Ddrops.rs10 pub(crate) struct NoDrop<T: ?Sized>(ManuallyDrop<T>);
21 impl<T: ?Sized> Deref for NoDrop<T> {
28 impl<T: ?Sized> DerefMut for NoDrop<T> {
H A Dspanned.rs106 impl<T: ?Sized + ToTokens> Spanned for T {
116 impl<T: ?Sized + ToTokens> Sealed for T {}
H A Dext.rs17 pub trait IdentExt: Sized + private::Sealed {
/linux/rust/kernel/sync/lock/
H A Dglobal.rs125 pub struct GlobalLockedBy<T: ?Sized, B: GlobalLockBackend> {
133 T: ?Sized,
142 T: ?Sized,
160 impl<T: ?Sized, B: GlobalLockBackend> GlobalLockedBy<T, B> { in as_ref()
/linux/rust/kernel/debugfs/
H A Dtraits.rs245 impl<T: ?Sized + BinaryReaderMut, A: Allocator> BinaryReaderMut for Box<T, A> { in read_from_slice_mut()
310 impl<T: ?Sized + BinaryReader, A: Allocator> BinaryReader for Box<T, A> {
321 impl<T: ?Sized + BinaryReader, A: Allocator> BinaryReader for Pin<Box<T, A>> {
332 impl<T: ?Sized + BinaryReader> BinaryReader for Arc<T> {
/linux/rust/kernel/irq/
H A Drequest.rs42 impl<T: ?Sized + Handler + Send> Handler for Arc<T> {
48 impl<T: ?Sized + Handler, A: Allocator + 'static> Handler for Box<T, A> {
308 impl<T: ?Sized + ThreadedHandler + Send> ThreadedHandler for Arc<T> { in handle_threaded()
318 impl<T: ?Sized + ThreadedHandler, A: Allocator + 'static> ThreadedHandler for Box<T, A> { in handle_threaded()
/linux/rust/kernel/ptr/
H A Dprojection.rs39 pub unsafe trait ProjectIndex<T: ?Sized>: Sized {
40 type Output: ?Sized;
210 // NOTE: in theory, this API should work for `T: ?Sized` and `F: ?Sized`, too. However, we cannot

123