Home
last modified time | relevance | path

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

12345678910>>...54

/external/rust/crates/num-traits/src/
Dreal.rs81 fn floor(self) -> Self; in floor()
94 fn ceil(self) -> Self; in ceil()
108 fn round(self) -> Self; in round()
121 fn trunc(self) -> Self; in trunc()
136 fn fract(self) -> Self; in fract()
156 fn abs(self) -> Self; in abs()
175 fn signum(self) -> Self; in signum()
231 fn mul_add(self, a: Self, b: Self) -> Self; in mul_add()
243 fn recip(self) -> Self; in recip()
257 fn powi(self, n: i32) -> Self; in powi()
[all …]
Dfloat.rs294 fn floor(self) -> Self { in floor()
328 fn ceil(self) -> Self { in ceil()
361 fn round(self) -> Self { in round()
405 fn trunc(self) -> Self { in trunc()
437 fn fract(self) -> Self { in fract()
466 fn abs(self) -> Self { in abs()
500 fn signum(self) -> Self { in signum()
585 fn min(self, other: Self) -> Self { in min()
619 fn max(self, other: Self) -> Self { in max()
652 fn recip(self) -> Self { in recip()
[all …]
Dint.rs122 fn rotate_left(self, n: u32) -> Self; in rotate_left()
137 fn rotate_right(self, n: u32) -> Self; in rotate_right()
154 fn signed_shl(self, n: u32) -> Self; in signed_shl()
171 fn signed_shr(self, n: u32) -> Self; in signed_shr()
188 fn unsigned_shl(self, n: u32) -> Self; in unsigned_shl()
205 fn unsigned_shr(self, n: u32) -> Self; in unsigned_shr()
219 fn swap_bytes(self) -> Self; in swap_bytes()
238 fn from_be(x: Self) -> Self; in from_be()
257 fn from_le(x: Self) -> Self; in from_le()
276 fn to_be(self) -> Self; in to_be()
[all …]
Dcast.rs415 fn from_isize(n: isize) -> Option<Self> { in from_isize()
422 fn from_i8(n: i8) -> Option<Self> { in from_i8()
429 fn from_i16(n: i16) -> Option<Self> { in from_i16()
436 fn from_i32(n: i32) -> Option<Self> { in from_i32()
442 fn from_i64(n: i64) -> Option<Self>; in from_i64()
453 fn from_i128(n: i128) -> Option<Self> { in from_i128()
460 fn from_usize(n: usize) -> Option<Self> { in from_usize()
467 fn from_u8(n: u8) -> Option<Self> { in from_u8()
474 fn from_u16(n: u16) -> Option<Self> { in from_u16()
481 fn from_u32(n: u32) -> Option<Self> { in from_u32()
[all …]
/external/rust/crates/syn/src/gen/
Dclone.rs9 fn clone(&self) -> Self { in clone()
19 fn clone(&self) -> Self { in clone()
31 fn clone(&self) -> Self { in clone()
48 fn clone(&self) -> Self { in clone()
55 fn clone(&self) -> Self { in clone()
68 fn clone(&self) -> Self { in clone()
82 fn clone(&self) -> Self { in clone()
89 fn clone(&self) -> Self { in clone()
100 fn clone(&self) -> Self { in clone()
110 fn clone(&self) -> Self { in clone()
[all …]
/external/rust/crates/clap/src/args/
Darg.rs77 pub fn with_name(n: &'a str) -> Self { in with_name()
295 pub fn from_usage(u: &'a str) -> Self { in from_usage()
336 pub fn short<S: AsRef<str>>(mut self, s: S) -> Self { in short()
376 pub fn long(mut self, l: &'b str) -> Self { in long()
402 pub fn alias<S: Into<&'b str>>(mut self, name: S) -> Self { in alias()
432 pub fn aliases(mut self, names: &[&'b str]) -> Self { in aliases()
463 pub fn visible_alias<S: Into<&'b str>>(mut self, name: S) -> Self { in visible_alias()
490 pub fn visible_aliases(mut self, names: &[&'b str]) -> Self { in visible_aliases()
551 pub fn help(mut self, h: &'b str) -> Self { in help()
622 pub fn long_help(mut self, h: &'b str) -> Self { in long_help()
[all …]
/external/rust/crates/plotters/src/chart/
Dmesh.rs26 pub(super) fn new(target: &'b mut ChartContext<'a, DB, Cartesian2d<X, Y>>) -> Self { in new()
35 pub fn axis_style<T: Into<ShapeStyle>>(&mut self, style: T) -> &mut Self { in axis_style()
44 pub fn x_label_offset<S: SizeDesc>(&mut self, value: S) -> &mut Self { in x_label_offset()
53 pub fn y_label_offset<S: SizeDesc>(&mut self, value: S) -> &mut Self { in y_label_offset()
60 pub fn x_labels(&mut self, value: usize) -> &mut Self { in x_labels()
67 pub fn y_labels(&mut self, value: usize) -> &mut Self { in y_labels()
74 pub fn x_label_formatter(&mut self, fmt: &'b dyn Fn(&X::ValueType) -> String) -> &mut Self { in x_label_formatter()
81 pub fn y_label_formatter(&mut self, fmt: &'b dyn Fn(&Y::ValueType) -> String) -> &mut Self { in y_label_formatter()
88 pub fn axis_desc_style<T: IntoTextStyle<'b>>(&mut self, style: T) -> &mut Self { in axis_desc_style()
96 pub fn x_desc<T: Into<String>>(&mut self, desc: T) -> &mut Self { in x_desc()
[all …]
/external/rust/crates/futures-sink/src/
Dlib.rs63 fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>; in poll_ready()
84 fn start_send(self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error>; in start_send()
98 fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>; in poll_flush()
111 fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>; in poll_close()
117 fn poll_ready(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
121 fn start_send(mut self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error> { in start_send()
125 fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_flush()
129 fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_close()
141 fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
145 fn start_send(self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error> { in start_send()
[all …]
/external/rust/crates/tokio/src/io/
Dasync_write.rs55 self: Pin<&mut Self>, in poll_write()
69 fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>>; in poll_flush()
129 fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>>; in poll_shutdown()
155 self: Pin<&mut Self>, in poll_write_vectored()
227 self: Pin<&mut Self>, in poll_write()
235 self: Pin<&mut Self>, in poll_write_vectored()
246 fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> { in poll_flush()
250 fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> { in poll_shutdown()
257 self: Pin<&mut Self>, in poll_write()
266 mut self: Pin<&mut Self>, in poll_write_vectored()
[all …]
Dasync_buf_read.rs45 fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>>; in poll_fill_buf()
62 fn consume(self: Pin<&mut Self>, amt: usize); in consume()
90 fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> { in poll_fill_buf()
94 fn consume(self: Pin<&mut Self>, amt: usize) { in consume()
100 fn poll_fill_buf(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> { in poll_fill_buf()
104 fn consume(mut self: Pin<&mut Self>, amt: usize) { in consume()
110 fn poll_fill_buf(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> { in poll_fill_buf()
114 fn consume(self: Pin<&mut Self>, amt: usize) { in consume()
/external/rust/crates/ppv-lite86/src/
Dtypes.rs9 fn bswap(self) -> Self; in bswap()
32 fn rotate_each_word_right7(self) -> Self; in rotate_each_word_right7()
33 fn rotate_each_word_right8(self) -> Self; in rotate_each_word_right8()
34 fn rotate_each_word_right11(self) -> Self; in rotate_each_word_right11()
35 fn rotate_each_word_right12(self) -> Self; in rotate_each_word_right12()
36 fn rotate_each_word_right16(self) -> Self; in rotate_each_word_right16()
37 fn rotate_each_word_right20(self) -> Self; in rotate_each_word_right20()
38 fn rotate_each_word_right24(self) -> Self; in rotate_each_word_right24()
39 fn rotate_each_word_right25(self) -> Self; in rotate_each_word_right25()
43 fn rotate_each_word_right32(self) -> Self; in rotate_each_word_right32()
[all …]
Dgeneric.rs15 fn from(d: [u32; 4]) -> Self { in from()
21 fn from(d: vec128_storage) -> Self { in from()
27 fn from(q: [u64; 2]) -> Self { in from()
33 fn from(q: vec128_storage) -> Self { in from()
56 pub fn new128(v128: [vec128_storage; 2]) -> Self { in new128()
66 fn from(q: vec256_storage) -> Self { in from()
78 pub fn new128(v128: [vec128_storage; 4]) -> Self { in new128()
295 fn rotate_each_word_right7(self) -> Self { in rotate_each_word_right7()
299 fn rotate_each_word_right8(self) -> Self { in rotate_each_word_right8()
303 fn rotate_each_word_right11(self) -> Self { in rotate_each_word_right11()
[all …]
Dsoft.rs13 pub fn new(xs: [W; 2]) -> Self { in new()
115 unsafe fn unsafe_from(xs: [W; 2]) -> Self { in unsafe_from()
125 fn insert(mut self, w: W, i: u32) -> Self { in insert()
132 unsafe fn unpack(p: vec256_storage) -> Self { in unpack()
143 fn from(x: x2<W, G>) -> Self { in from()
165 fn from_lanes(lanes: [W; 2]) -> Self { in from_lanes()
171 fn bswap(self) -> Self { in bswap()
177 unsafe fn unsafe_read_le(input: &[u8]) -> Self { in unsafe_read_le()
182 unsafe fn unsafe_read_be(input: &[u8]) -> Self { in unsafe_read_be()
204 pub fn new(xs: [W; 4]) -> Self { in new()
[all …]
/external/rust/crates/serde_json/src/value/
Dfrom.rs45 fn from(f: f32) -> Self { in from()
61 fn from(f: f64) -> Self { in from()
77 fn from(f: bool) -> Self { in from()
93 fn from(f: String) -> Self { in from()
109 fn from(f: &str) -> Self { in from()
134 fn from(f: Cow<'a, str>) -> Self { in from()
150 fn from(f: Number) -> Self { in from()
167 fn from(f: Map<String, Value>) -> Self { in from()
183 fn from(f: Vec<T>) -> Self { in from()
199 fn from(f: &'a [T]) -> Self { in from()
[all …]
/external/rust/crates/arbitrary/src/
Dlib.rs171 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>; in arbitrary()
178 fn arbitrary_take_rest(mut u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
262 fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
273 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
346 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
369 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
380 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
391 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
490 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
507 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
[all …]
/external/rust/crates/gdbstub/examples/armv4t/gdb/
Dextended_mode.rs23 fn kill(&mut self, pid: Option<Pid>) -> TargetResult<ShouldTerminate, Self> { in kill() argument
33 fn attach(&mut self, pid: Pid) -> TargetResult<(), Self> { in attach() argument
38 fn run(&mut self, filename: Option<&[u8]>, args: Args) -> TargetResult<Pid, Self> { in run() argument
64 fn configure_aslr(&mut self) -> Option<target::ext::extended_mode::ConfigureASLROps<Self>> { in configure_aslr()
68 fn configure_env(&mut self) -> Option<target::ext::extended_mode::ConfigureEnvOps<Self>> { in configure_env()
74 ) -> Option<target::ext::extended_mode::ConfigureStartupShellOps<Self>> { in configure_startup_shell()
80 ) -> Option<target::ext::extended_mode::ConfigureWorkingDirOps<Self>> { in configure_working_dir()
86 fn cfg_aslr(&mut self, enabled: bool) -> TargetResult<(), Self> { in cfg_aslr() argument
93 fn set_env(&mut self, key: &[u8], val: Option<&[u8]>) -> TargetResult<(), Self> { in set_env() argument
106 fn remove_env(&mut self, key: &[u8]) -> TargetResult<(), Self> { in remove_env() argument
[all …]
Dmod.rs40 fn sw_breakpoint(&mut self) -> Option<target::ext::breakpoints::SwBreakpointOps<Self>> { in sw_breakpoint()
44 fn hw_watchpoint(&mut self) -> Option<target::ext::breakpoints::HwWatchpointOps<Self>> { in hw_watchpoint()
48 fn extended_mode(&mut self) -> Option<target::ext::extended_mode::ExtendedModeOps<Self>> { in extended_mode()
52 fn monitor_cmd(&mut self) -> Option<target::ext::monitor_cmd::MonitorCmdOps<Self>> { in monitor_cmd()
56 fn section_offsets(&mut self) -> Option<target::ext::section_offsets::SectionOffsetsOps<Self>> { in section_offsets()
62 ) -> Option<target::ext::target_description_xml_override::TargetDescriptionXmlOverrideOps<Self>> in target_description_xml_override()
109 fn read_registers(&mut self, regs: &mut arch::arm::reg::ArmCoreRegs) -> TargetResult<(), Self> { in read_registers() argument
123 fn write_registers(&mut self, regs: &arch::arm::reg::ArmCoreRegs) -> TargetResult<(), Self> { in write_registers() argument
141 ) -> TargetResult<(), Self> { in read_register() argument
155 ) -> TargetResult<(), Self> { in write_register() argument
[all …]
/external/rust/crates/clap/src/app/
Dmod.rs80 pub fn new<S: Into<String>>(n: S) -> Self { in new()
114 pub fn with_defaults<S: Into<String>>(n: S) -> Self { in with_defaults()
187 pub fn author<S: Into<&'b str>>(mut self, author: S) -> Self { in author() method
210 pub fn bin_name<S: Into<String>>(mut self, name: S) -> Self { in bin_name()
233 pub fn about<S: Into<&'b str>>(mut self, about: S) -> Self { in about() method
259 pub fn long_about<S: Into<&'b str>>(mut self, about: S) -> Self { in long_about()
286 pub fn name<S: Into<String>>(mut self, name: S) -> Self { in name() method
303 pub fn after_help<S: Into<&'b str>>(mut self, help: S) -> Self { in after_help()
320 pub fn before_help<S: Into<&'b str>>(mut self, help: S) -> Self { in before_help()
346 pub fn version<S: Into<&'b str>>(mut self, ver: S) -> Self { in version()
[all …]
/external/rust/crates/futures-io/src/
Dlib.rs88 fn poll_read(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut [u8]) in poll_read()
113 … fn poll_read_vectored(self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &mut [IoSliceMut<'_>]) in poll_read_vectored()
152 fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) in poll_write()
178 fn poll_write_vectored(self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>]) in poll_write_vectored()
208 fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>; in poll_flush()
225 fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>; in poll_close()
255 fn poll_seek(self: Pin<&mut Self>, cx: &mut Context<'_>, pos: SeekFrom) in poll_seek()
295 fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) in poll_fill_buf()
313 fn consume(self: Pin<&mut Self>, amt: usize); in consume()
355 fn poll_read(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut [u8]) in poll_read()
[all …]
/external/rust/crates/pin-project/tests/ui/pinned_drop/
Dinvalid.rs10 fn drop(self: Pin<&mut Self>) {} in drop()
18 fn drop(self: Pin<&mut Self>) {} in drop()
31 fn drop(self: Pin<&mut Self>) {} in drop()
63 fn drop(self: Pin<&mut Self>) {} in drop()
71 … unsafe fn drop(self: Pin<&mut Self>) {} //~ ERROR implementing the method `drop` is not unsafe in drop()
90 fn drop(self: Pin<&mut Self>) {} in drop()
98 fn drop(self: Pin<&mut Self>) {} in drop()
108 fn drop(self: Pin<&mut Self>) {} in drop()
116 fn drop(self: Pin<&mut Self>) {} in drop()
125 fn drop(self: Pin<&mut Self>) {} in drop()
[all …]
/external/rust/crates/futures-channel/src/mpsc/
Dsink_impl.rs10 mut self: Pin<&mut Self>, in poll_ready()
17 mut self: Pin<&mut Self>, in start_send()
24 mut self: Pin<&mut Self>, in poll_flush()
37 mut self: Pin<&mut Self>, in poll_close()
49 self: Pin<&mut Self>, in poll_ready()
56 mut self: Pin<&mut Self>, in start_send()
63 self: Pin<&mut Self>, in poll_flush()
70 mut self: Pin<&mut Self>, in poll_close()
82 self: Pin<&mut Self>, in poll_ready()
88 fn start_send(self: Pin<&mut Self>, msg: T) -> Result<(), Self::Error> { in start_send()
[all …]
/external/rust/crates/rusqlite/src/types/
Dfrom_sql.rs90 fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>; in column_result()
94 fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> { in column_result()
129 fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> { in column_result()
135 fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> { in column_result()
145 fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> { in column_result()
151 fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> { in column_result()
157 fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> { in column_result()
163 fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> { in column_result()
169 fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> { in column_result()
175 fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> { in column_result()
[all …]
/external/rust/crates/proc-macro-error/src/
Ddiagnostic.rs39 fn spanned_range(span_range: SpanRange, level: Level, message: String) -> Self; in spanned_range()
46 fn span_range_error(self, span_range: SpanRange, msg: String) -> Self; in span_range_error()
56 fn span_range_help(self, span_range: SpanRange, msg: String) -> Self; in span_range_help()
66 fn span_range_note(self, span_range: SpanRange, msg: String) -> Self; in span_range_note()
70 fn spanned_range(span_range: SpanRange, level: Level, message: String) -> Self { in spanned_range()
80 fn span_range_error(mut self, span_range: SpanRange, msg: String) -> Self { in span_range_error()
85 fn span_range_help(mut self, span_range: SpanRange, msg: String) -> Self { in span_range_help()
91 fn span_range_note(mut self, span_range: SpanRange, msg: String) -> Self { in span_range_note()
100 pub fn new(level: Level, message: String) -> Self { in new()
105 pub fn spanned(span: Span, level: Level, message: String) -> Self { in spanned()
[all …]
/external/rust/crates/gdbstub/src/target/ext/
Dextended_mode.rs91 fn run(&mut self, filename: Option<&[u8]>, args: Args) -> TargetResult<Pid, Self>; in run() argument
98 fn attach(&mut self, pid: Pid) -> TargetResult<(), Self>; in attach() argument
107 fn query_if_attached(&mut self, pid: Pid) -> TargetResult<AttachKind, Self>; in query_if_attached() argument
119 fn kill(&mut self, pid: Option<Pid>) -> TargetResult<ShouldTerminate, Self>; in kill() argument
149 fn configure_aslr(&mut self) -> Option<ConfigureASLROps<Self>> { in configure_aslr()
154 fn configure_env(&mut self) -> Option<ConfigureEnvOps<Self>> { in configure_env()
159 fn configure_startup_shell(&mut self) -> Option<ConfigureStartupShellOps<Self>> { in configure_startup_shell()
164 fn configure_working_dir(&mut self) -> Option<ConfigureWorkingDirOps<Self>> { in configure_working_dir()
203 fn cfg_aslr(&mut self, enabled: bool) -> TargetResult<(), Self>; in cfg_aslr() argument
217 fn set_env(&mut self, key: &[u8], val: Option<&[u8]>) -> TargetResult<(), Self>; in set_env() argument
[all …]
/external/rust/crates/num-traits/src/ops/
Dchecked.rs8 fn checked_add(&self, v: &Self) -> Option<Self>; in checked_add()
42 fn checked_sub(&self, v: &Self) -> Option<Self>; in checked_sub()
66 fn checked_mul(&self, v: &Self) -> Option<Self>; in checked_mul()
90 fn checked_div(&self, v: &Self) -> Option<Self>; in checked_div()
131 fn checked_rem(&self, v: &Self) -> Option<Self>; in checked_rem()
179 fn checked_neg(&self) -> Option<Self>; in checked_neg()
214 fn checked_shl(&self, rhs: u32) -> Option<Self>; in checked_shl()
260 fn checked_shr(&self, rhs: u32) -> Option<Self>; in checked_shr()

12345678910>>...54