Home
last modified time | relevance | path

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

123456

/linux/rust/syn/gen/
H A Dclone.rs10 fn clone(&self) -> Self { in clone()
20 fn clone(&self) -> Self { in clone()
32 fn clone(&self) -> Self { in clone()
46 fn clone(&self) -> Self { in clone()
58 fn clone(&self) -> Self { in clone()
73 fn clone(&self) -> Self { in clone()
80 fn clone(&self) -> Self { in clone()
92 fn clone(&self) -> Self { in clone()
103 fn clone(&self) -> Self { in clone()
118 fn clone(&self) -> Self { in clone()
[all …]
/linux/rust/syn/
H A Dparse_quote.rs140 fn parse(input: ParseStream) -> Result<Self>; in parse()
144 fn parse(input: ParseStream) -> Result<Self> { in parse()
160 fn parse(input: ParseStream) -> Result<Self> { in parse()
171 fn parse(input: ParseStream) -> Result<Self> { in parse()
182 fn parse(input: ParseStream) -> Result<Self> { in parse()
212 fn parse(input: ParseStream) -> Result<Self> { in parse()
219 fn parse(input: ParseStream) -> Result<Self> { in parse()
225 fn parse(input: ParseStream) -> Result<Self> { in parse()
232 fn parse(input: ParseStream) -> Result<Self> { in parse()
239 fn parse(input: ParseStream) -> Result<Self> { in parse()
H A Dty.rs299 fn parse(input: ParseStream) -> Result<Self> { in parse()
313 pub fn without_plus(input: ParseStream) -> Result<Self> { in without_plus()
617 fn parse(input: ParseStream) -> Result<Self> { in parse()
628 fn parse(input: ParseStream) -> Result<Self> { in parse()
641 fn parse(input: ParseStream) -> Result<Self> { in parse()
664 fn parse(input: ParseStream) -> Result<Self> { in parse()
677 fn parse(input: ParseStream) -> Result<Self> { in parse()
724 fn parse(input: ParseStream) -> Result<Self> { in parse()
733 fn parse(input: ParseStream) -> Result<Self> { in parse()
742 fn parse(input: ParseStream) -> Result<Self> { in parse()
[all …]
H A Dgenerics.rs377 pub fn new(lifetime: Lifetime) -> Self { in new()
388 fn from(ident: Ident) -> Self { in from()
541 fn parse(input: ParseStream) -> Result<Self> { in parse()
604 fn parse(input: ParseStream) -> Result<Self> { in parse()
631 fn parse(input: ParseStream) -> Result<Self> { in parse()
669 fn parse(input: ParseStream) -> Result<Self> { in parse()
691 fn parse(input: ParseStream) -> Result<Self> { in parse()
702 fn parse(input: ParseStream) -> Result<Self> { in parse()
746 fn parse(input: ParseStream) -> Result<Self> { in parse()
758 ) -> Result<Self> { in parse_single()
[all …]
H A Dpath.rs26 fn from(segment: T) -> Self { in from()
122 fn from(ident: T) -> Self { in from()
312 fn parse(input: ParseStream) -> Result<Self> { in parse()
319 fn parse(input: ParseStream) -> Result<Self> { in parse()
456 pub fn parse_turbofish(input: ParseStream) -> Result<Self> { in parse_turbofish()
464 ) -> Result<Self> { in do_parse()
491 fn parse(input: ParseStream) -> Result<Self> { in parse()
499 fn parse(input: ParseStream) -> Result<Self> { in parse()
511 fn parse(input: ParseStream) -> Result<Self> { in parse()
517 fn parse_helper(input: ParseStream, expr_style: bool) -> Result<Self> { in parse_helper()
[all …]
H A Ditem.rs941 fn parse(input: ParseStream) -> Result<Self> { in parse()
1156 ) -> Result<Self> { in parse()
1239 fn parse(input: ParseStream) -> Result<Self> { in parse()
1293 fn parse(input: ParseStream) -> Result<Self> { in parse()
1326 fn parse(input: ParseStream) -> Result<Self> { in parse()
1444 fn parse(input: ParseStream) -> Result<Self> { in parse()
1462 fn parse(input: ParseStream) -> Result<Self> { in parse()
1509 fn parse(input: ParseStream) -> Result<Self> { in parse()
1558 fn parse(input: ParseStream) -> Result<Self> { in parse()
1587 fn parse(input: ParseStream) -> Result<Self> { in parse()
[all …]
H A Dparse.rs217 fn parse(input: ParseStream) -> Result<Self>; in parse()
363 fn clone(&self) -> Self { in clone()
414 fn clone(&self) -> Self { in clone()
968 pub fn fork(&self) -> Self { in fork()
1169 fn parse(input: ParseStream) -> Result<Self> { in parse()
1176 fn parse(input: ParseStream) -> Result<Self> { in parse()
1187 fn parse(input: ParseStream) -> Result<Self> { in parse()
1194 fn parse(input: ParseStream) -> Result<Self> { in parse()
1204 fn parse(input: ParseStream) -> Result<Self> { in parse()
1218 fn parse(input: ParseStream) -> Result<Self> { in parse()
[all …]
H A Dexpr.rs1231 fn parse(input: ParseStream) -> Result<Self> { in parse()
1306 fn clone(&self) -> Self { in clone()
1997 fn parse(input: ParseStream) -> Result<Self> { in parse()
2091 fn parse(input: ParseStream) -> Result<Self> { in parse()
2117 fn parse(input: ParseStream) -> Result<Self> { in parse()
2150 fn parse(input: ParseStream) -> Result<Self> { in parse()
2195 fn parse(input: ParseStream) -> Result<Self> { in parse()
2208 fn parse(input: ParseStream) -> Result<Self> { in parse()
2231 fn parse(input: ParseStream) -> Result<Self> { in parse()
2285 fn parse(input: ParseStream) -> Result<Self> { in parse()
[all …]
H A Dlit.rs135 pub fn new(value: &str, span: Span) -> Self { in new()
276 pub fn new(value: &[u8], span: Span) -> Self { in new()
311 pub fn new(value: &CStr, span: Span) -> Self { in new()
346 pub fn new(value: u8, span: Span) -> Self { in new()
381 pub fn new(value: char, span: Span) -> Self { in new()
416 pub fn new(repr: &str, span: Span) -> Self { in new()
487 fn from(token: Literal) -> Self { in from()
510 pub fn new(repr: &str, span: Span) -> Self { in new()
559 fn from(token: Literal) -> Self { in from()
582 pub fn new(value: bool, span: Span) -> Self { in new()
[all …]
/linux/rust/kernel/list/
H A Darc.rs42 unsafe fn on_create_list_arc_from_unique(self: Pin<&mut Self>); in on_create_list_arc_from_unique() argument
173 new(contents: T, flags: Flags) -> Result<Self, AllocError> new() argument
183 pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, pin_init() argument
194 init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, init() argument
208 from(unique: UniqueArc<T>) -> Self from() argument
219 from(mut unique: Pin<UniqueArc<T>>) -> Self from() argument
237 pair_from_unique<const ID2: u64>(unique: UniqueArc<T>) -> (Self, ListArc<T, ID2>) where T: ListArcSafe<ID2>, pair_from_unique() argument
250 pair_from_pin_unique<const ID2: u64>( mut unique: Pin<UniqueArc<T>>, ) -> (Self, ListArc<T, ID2>) where T: ListArcSafe<ID2>, pair_from_pin_unique() argument
277 try_from_arc(arc: Arc<T>) -> Result<Self, Arc<T>> where T: TryNewListArc<ID>, try_from_arc() argument
327 transmute_from_arc(arc: Arc<T>) -> Self transmute_from_arc() argument
361 from_raw(ptr: *const T) -> Self from_raw() argument
406 ptr_eq(this: &Self, other: &Self) -> bool ptr_eq() argument
496 on_create_list_arc_from_unique(self: Pin<&mut Self>) on_create_list_arc_from_unique() argument
[all...]
/linux/rust/pin-init/src/
H A Dalloc.rs30 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
38 fn pin_init(init: impl PinInit<T>) -> Result<Pin<Self>, AllocError> { in pin_init()
50 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
55 fn init(init: impl Init<T>) -> Result<Self, AllocError> { in init() method
82 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
90 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
100 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
118 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
/linux/rust/kernel/
H A Dtypes.rs63 from_foreign(ptr: *mut c_void) -> Self from_foreign() argument
75 try_from_foreign(ptr: *mut c_void) -> Option<Self> try_from_foreign() argument
140 from_foreign(_: *mut c_void) -> Self from_foreign() argument
224 new_with_data(data: T, cleanup_func: F) -> Self new_with_data() argument
333 new(value: T) -> Self new() argument
364 ffi_init(init_func: impl FnOnce(*mut T)) -> impl PinInit<Self> ffi_init() argument
385 try_ffi_init<E>( init_func: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl PinInit<Self, E> try_ffi_init() argument
407 cast_from(this: *const T) -> *const Self cast_from() argument
414 pin_init<E>(slot: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument
[all...]
H A Dusb.rs130 from_id(vendor: u16, product: u16) -> Self from_id() argument
141 from_device_ver(vendor: u16, product: u16, bcd_lo: u16, bcd_hi: u16) -> Self from_device_ver() argument
154 from_device_info(class: u8, subclass: u8, protocol: u8) -> Self from_device_info() argument
166 from_interface_info(class: u8, subclass: u8, protocol: u8) -> Self from_interface_info() argument
178 from_device_interface_class(vendor: u16, product: u16, class: u8) -> Self from_device_interface_class() argument
191 from_device_interface_protocol(vendor: u16, product: u16, protocol: u8) -> Self from_device_interface_protocol() argument
204 from_device_interface_number(vendor: u16, product: u16, number: u8) -> Self from_device_interface_number() argument
223 from_device_and_interface_info( vendor: u16, product: u16, class: u8, subclass: u8, protocol: u8, ) -> Self from_device_and_interface_info() argument
320 probe( interface: &Interface<device::Core>, id: &DeviceId, id_info: &Self::IdInfo, ) -> impl PinInit<Self, Error> probe() argument
325 disconnect(interface: &Interface<device::Core>, data: Pin<&Self>) disconnect() argument
394 dec_ref(obj: NonNull<Self>) dec_ref() argument
445 dec_ref(obj: NonNull<Self>) dec_ref() argument
[all...]
H A Dfirmware.rs69 fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> { in request_internal()
87 pub fn request(name: &CStr, dev: &Device) -> Result<Self> { in request()
93 pub fn request_nowarn(name: &CStr, dev: &Device) -> Result<Self> { in request_nowarn()
241 pub const fn new(module_name: &'static CStr) -> Self { in new()
249 const fn push_internal(mut self, bytes: &[u8]) -> Self { in push_internal()
287 pub const fn push(self, s: &str) -> Self { in push()
296 const fn push_module_name(self) -> Self { in push_module_name()
320 pub const fn new_entry(self) -> Self { in new_entry()
H A Dcpufreq.rs90 fn new(val: u32) -> Result<Self> { in new()
104 fn from(rel: Relation) -> Self { in from()
140 pub unsafe fn from_raw_mut<'a>(ptr: *mut bindings::cpufreq_policy_data) -> &'a mut Self { in from_raw_mut()
151 let this: *const Self = self; in as_raw() constant
180 pub unsafe fn new(index: usize) -> Self { in new()
188 fn from(index: TableIndex) -> Self { in from()
234 pub unsafe fn from_raw<'a>(ptr: *const bindings::cpufreq_frequency_table) -> &'a Self { in from_raw()
245 let this: *const Self = self; in as_raw() constant
288 fn new(entries: KVec<bindings::cpufreq_frequency_table>) -> Result<Self> { in new()
425 pub unsafe fn from_raw<'a>(ptr: *const bindings::cpufreq_policy) -> &'a Self { in from_raw()
[all …]
H A Dopp.rs40 pub(crate) fn new(table: &Table) -> Result<Self> { in new()
123 fn from(volt: MicroVolt) -> Self { in from()
148 fn from(power: MicroWatt) -> Self { in from()
182 fn new(dev: &ARef<Device>, mut data: Data) -> Result<Self> { in new()
231 pub fn new(freq: Hertz, volt: MicroVolt, level: u32, turbo: bool) -> Self { in new()
380 pub fn set_clk_names(mut self, names: KVec<CString>) -> Result<Self> { in set_clk_names()
394 pub fn set_prop_name(mut self, name: CString) -> Result<Self> { in set_prop_name()
404 pub fn set_regulator_names(mut self, names: KVec<CString>) -> Result<Self> { in set_regulator_names()
419 pub fn set_required_dev(mut self, dev: ARef<Device>, index: u32) -> Result<Self> { in set_required_dev()
429 pub fn set_supported_hw(mut self, hw: KVec<u32>) -> Result<Self> { in set_supported_hw()
[all …]
H A Di2c.rs46 new(id: &'static CStr) -> Self new() argument
338 probe( dev: &I2cClient<device::Core>, id_info: Option<&Self::IdInfo>, ) -> impl PinInit<Self, Error> probe() argument
351 shutdown(dev: &I2cClient<device::Core>, this: Pin<&Self>) shutdown() argument
365 unbind(dev: &I2cClient<device::Core>, this: Pin<&Self>) unbind() argument
401 get(index: i32) -> Result<ARef<Self>> get() argument
425 dec_ref(obj: NonNull<Self>) dec_ref() argument
442 new(type_: &'static CStr, addr: u16) -> Self new() argument
501 dec_ref(obj: NonNull<Self>) dec_ref() argument
522 try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> try_from() argument
564 new<'a>( i2c_adapter: &I2cAdapter, i2c_board_info: &I2cBoardInfo, parent_dev: &'a device::Device<device::Bound>, ) -> impl PinInit<Devres<Self>, Error> + 'a new() argument
568 try_new(i2c_adapter: &I2cAdapter, i2c_board_info: &I2cBoardInfo) -> Result<Self> try_new() argument
[all...]
H A Dclk.rs38 pub const fn from_khz(khz: c_ulong) -> Self { in from_khz() argument
43 pub const fn from_mhz(mhz: c_ulong) -> Self { in from_mhz() argument
48 pub const fn from_ghz(ghz: c_ulong) -> Self { in from_ghz() argument
74 from(freq: Hertz) -> Self from() argument
138 get(dev: &Device, name: Option<&CStr>) -> Result<Self> get() argument
306 get(dev: &Device, name: Option<&CStr>) -> Result<Self> get() argument
[all...]
H A Dptr.rs48 pub const fn new<const ALIGN: usize>() -> Self { in new()
75 pub const fn new_checked(align: usize) -> Option<Self> { in new_checked()
89 pub const fn of<T>() -> Self { in of()
182 fn align_down(self, alignment: Alignment) -> Self; in align_down()
198 fn align_up(self, alignment: Alignment) -> Option<Self>; in align_up()
/linux/rust/proc-macro2/
H A Dlib.rs210 fn _new(inner: imp::TokenStream) -> Self { in _new()
217 fn _new_fallback(inner: fallback::TokenStream) -> Self { in _new_fallback()
268 fn from(inner: proc_macro::TokenStream) -> Self { in from()
276 fn from(inner: TokenStream) -> Self { in from()
282 fn from(token: TokenTree) -> Self { in from()
357 fn _new(inner: imp::Span) -> Self { in _new()
364 fn _new_fallback(inner: fallback::Span) -> Self { in _new_fallback()
578 fn from(g: Group) -> Self { in from()
584 fn from(g: Ident) -> Self { in from()
590 fn from(g: Punct) -> Self { in from()
[all …]
H A Dwrapper.rs61 fn new(stream: proc_macro::TokenStream) -> Self { in new()
96 pub(crate) fn from_str_checked(src: &str) -> Result<Self, LexError> { in from_str_checked()
140 fn from(inner: proc_macro::TokenStream) -> Self { in from()
146 fn from(inner: TokenStream) -> Self { in from()
157 fn from(inner: fallback::TokenStream) -> Self { in from()
181 fn from(token: TokenTree) -> Self { in from()
276 fn from(e: proc_macro::LexError) -> Self { in from()
282 fn from(e: fallback::LexError) -> Self { in from()
530 fn from(proc_span: proc_macro::Span) -> Self { in from()
536 fn from(inner: fallback::Span) -> Self { in from()
[all …]
H A Dfallback.rs76 pub(crate) fn from_str_checked(src: &str) -> Result<Self, LexError> { in from_str_checked()
90 pub(crate) fn from_str_unchecked(src: &str) -> Self { in from_str_unchecked()
173 pub(crate) fn with_capacity(cap: usize) -> Self { in with_capacity()
250 fn from(inner: proc_macro::TokenStream) -> Self { in from()
257 fn from(inner: TokenStream) -> Self { in from()
263 fn from(tree: TokenTree) -> Self { in from()
643 pub(crate) fn first_byte(self) -> Self { in first_byte()
648 pub(crate) fn first_byte(self) -> Self { in first_byte()
656 pub(crate) fn last_byte(self) -> Self { in last_byte()
661 pub(crate) fn last_byte(self) -> Self { in last_byte()
[all …]
/linux/rust/kernel/debugfs/
H A Dentry.rs31 dynamic_dir(name: &CStr, parent: Option<Arc<Self>>) -> Self dynamic_dir() argument
54 dynamic_file<T>( name: &CStr, parent: Arc<Self>, data: &T, file_ops: &'static FileOps<T>, ) -> Self dynamic_file() argument
57 dynamic_file<T>( name: &CStr, parent: Arc<Self>, data: &T, file_ops: &'static FileOps<T>, ) -> Self dynamic_file() argument
84 dir(name: &CStr, parent: Option<&'a Entry<'_>>) -> Self dir() argument
108 file<T>( name: &CStr, parent: &'a Entry<'_>, data: &'a T, file_ops: &FileOps<T>, ) -> Self file() argument
/linux/rust/pin-init/examples/
H A Dlinked_list.rs44 pub fn insert_next(list: &ListHead) -> impl PinInit<Self> + '_ { in insert_next() argument
53 pub fn insert_prev(list: &ListHead) -> impl PinInit<Self> + '_ { in insert_prev() argument
62 pub fn next(&self) -> Option<NonNull<Self>> { in next() argument
85 fn drop(self: Pin<&mut Self>) { in drop() argument
107 unsafe fn new_unchecked(ptr: NonNull<ListHead>) -> Self { in new_unchecked() argument
[all...]
/linux/scripts/
H A Dgenerate_rust_target.rs69 fn from(value: bool) -> Self { in from()
75 fn from(value: i32) -> Self { in from()
81 fn from(value: String) -> Self { in from()
87 fn from(value: &str) -> Self { in from()
93 fn from(object: Object) -> Self { in from()
99 fn from(i: [T; N]) -> Self { in from()

123456