Home
last modified time | relevance | path

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

12345678910>>...153

/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.rs317 fn floor(self) -> Self { in floor()
351 fn ceil(self) -> Self { in ceil()
384 fn round(self) -> Self { in round()
426 fn trunc(self) -> Self { in trunc()
458 fn fract(self) -> Self { in fract()
487 fn abs(self) -> Self { in abs()
521 fn signum(self) -> Self { in signum()
606 fn min(self, other: Self) -> Self { in min()
640 fn max(self, other: Self) -> Self { in max()
673 fn recip(self) -> Self { in recip()
[all …]
/external/rust/crates/glam/src/swizzles/
Dvec_traits.rs10 fn xy(self) -> Self { in xy()
14 fn xx(self) -> Self; in xx()
16 fn yx(self) -> Self; in yx()
18 fn yy(self) -> Self; in yy()
76 fn xyz(self) -> Self { in xyz()
98 fn xxx(self) -> Self; in xxx()
100 fn xxy(self) -> Self; in xxy()
102 fn xxz(self) -> Self; in xxz()
104 fn xyx(self) -> Self; in xyx()
106 fn xyy(self) -> Self; in xyy()
[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()
45 fn clone(&self) -> Self { in clone()
57 fn clone(&self) -> Self { in clone()
72 fn clone(&self) -> Self { in clone()
79 fn clone(&self) -> Self { in clone()
91 fn clone(&self) -> Self { in clone()
102 fn clone(&self) -> Self { in clone()
117 fn clone(&self) -> Self { in clone()
[all …]
/external/rust/crates/half/src/
Dnum_traits.rs53 fn from_i64(n: i64) -> Option<Self> { in from_i64()
57 fn from_u64(n: u64) -> Option<Self> { in from_u64()
61 fn from_i8(n: i8) -> Option<Self> { in from_i8()
65 fn from_u8(n: u8) -> Option<Self> { in from_u8()
69 fn from_i16(n: i16) -> Option<Self> { in from_i16()
73 fn from_u16(n: u16) -> Option<Self> { in from_u16()
77 fn from_i32(n: i32) -> Option<Self> { in from_i32()
81 fn from_u32(n: u32) -> Option<Self> { in from_u32()
85 fn from_f32(n: f32) -> Option<Self> { in from_f32()
89 fn from_f64(n: f64) -> Option<Self> { in from_f64()
[all …]
/external/rust/crates/vulkano/src/device/
Dproperties.rs27 fn from_vulkan(val: F) -> Option<Self>; in from_vulkan()
32 fn from_vulkan(val: u8) -> Option<Self> { in from_vulkan()
39 fn from_vulkan(val: [u8; N]) -> Option<Self> { in from_vulkan()
46 fn from_vulkan(val: u32) -> Option<Self> { in from_vulkan()
53 fn from_vulkan(val: [u32; N]) -> Option<Self> { in from_vulkan()
60 fn from_vulkan(val: u64) -> Option<Self> { in from_vulkan()
67 fn from_vulkan(val: u64) -> Option<Self> { in from_vulkan()
74 fn from_vulkan(val: usize) -> Option<Self> { in from_vulkan()
81 fn from_vulkan(val: i32) -> Option<Self> { in from_vulkan()
88 fn from_vulkan(val: i64) -> Option<Self> { in from_vulkan()
[all …]
/external/rust/crates/pdl-compiler/tests/generated/rust/
Denum_declaration_big_endian.rs36 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from()
45 fn from(value: &IncompleteTruncatedClosed) -> Self { in from()
53 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
58 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
63 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
68 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
73 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
78 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
83 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
88 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
[all …]
Denum_declaration_little_endian.rs36 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from()
45 fn from(value: &IncompleteTruncatedClosed) -> Self { in from()
53 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
58 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
63 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
68 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
73 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
78 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
83 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
88 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
[all …]
/external/rust/crates/pdl-compiler/tests/generated/rust_legacy/
Denum_declaration_big_endian.rs36 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from()
45 fn from(value: &IncompleteTruncatedClosed) -> Self { in from()
53 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
58 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
63 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
68 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
73 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
78 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
83 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
88 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
[all …]
Denum_declaration_little_endian.rs36 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from()
45 fn from(value: &IncompleteTruncatedClosed) -> Self { in from()
53 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
58 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
63 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
68 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
73 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
78 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
83 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
88 fn from(value: IncompleteTruncatedClosed) -> Self { in from()
[all …]
/external/rust/crates/pest/src/
Dparser_state.rs198 pub fn new(input: &'i str) -> Box<Self> { in new()
256 fn inc_call_check_limit(mut self: Box<Self>) -> ParseResult<Box<Self>> { in inc_call_check_limit()
290 pub fn rule<F>(mut self: Box<Self>, rule: R, f: F) -> ParseResult<Box<Self>> in rule()
292 F: FnOnce(Box<Self>) -> ParseResult<Box<Self>>, in rule()
410 pub fn tag_node(mut self: Box<Self>, tag: &'i str) -> ParseResult<Box<Self>> { in tag_node()
500 pub fn sequence<F>(mut self: Box<Self>, f: F) -> ParseResult<Box<Self>> in sequence()
502 F: FnOnce(Box<Self>) -> ParseResult<Box<Self>>, in sequence()
550 pub fn repeat<F>(mut self: Box<Self>, mut f: F) -> ParseResult<Box<Self>> in repeat()
552 F: FnMut(Box<Self>) -> ParseResult<Box<Self>>, in repeat()
592 pub fn optional<F>(mut self: Box<Self>, f: F) -> ParseResult<Box<Self>> in optional()
[all …]
/external/rust/crates/glam/src/
Dfloat.rs9 fn lerp(self, rhs: Self, s: Self) -> Self; in lerp()
18 fn inverse_lerp(a: Self, b: Self, v: Self) -> Self; in inverse_lerp()
29 fn remap(self, in_start: Self, in_end: Self, out_start: Self, out_end: Self) -> Self; in remap()
/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/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 …]
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()
201 fn shuffle_lane_words2301(self) -> Self { in shuffle_lane_words2301()
[all …]
/external/rust/crates/futures-sink/src/
Dlib.rs68 fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>; in poll_ready()
89 fn start_send(self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error>; in start_send()
103 fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>; in poll_flush()
116 fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>; in poll_close()
122 fn poll_ready(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
126 fn start_send(mut self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error> { in start_send()
130 fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_flush()
134 fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_close()
146 fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
150 fn start_send(self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error> { in start_send()
[all …]
/external/rust/crates/darling_core/src/
Dfrom_meta.rs52 fn from_nested_meta(item: &NestedMeta) -> Result<Self> { in from_nested_meta()
68 fn from_meta(item: &Meta) -> Result<Self> { in from_meta()
101 fn from_list(items: &[NestedMeta]) -> Result<Self> { in from_list()
112 fn from_value(value: &Lit) -> Result<Self> { in from_value()
122 fn from_expr(expr: &Expr) -> Result<Self> { in from_expr()
140 fn from_char(value: char) -> Result<Self> { in from_char()
146 fn from_string(value: &str) -> Result<Self> { in from_string()
152 fn from_bool(value: bool) -> Result<Self> { in from_bool()
171 fn from_bool(value: bool) -> Result<Self> { in from_bool()
175 fn from_string(value: &str) -> Result<Self> { in from_string()
[all …]
/external/rust/crates/tokio/src/io/
Dasync_write.rs59 self: Pin<&mut Self>, in poll_write()
73 fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>>; in poll_flush()
133 fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>>; in poll_shutdown()
159 self: Pin<&mut Self>, in poll_write_vectored()
231 self: Pin<&mut Self>, in poll_write()
239 self: Pin<&mut Self>, in poll_write_vectored()
250 fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> { in poll_flush()
254 fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> { in poll_shutdown()
261 self: Pin<&mut Self>, in poll_write()
270 mut self: Pin<&mut Self>, in poll_write_vectored()
[all …]
/external/rust/crates/rustix/src/backend/linux_raw/
Dconv.rs125 fn from(c: &'a CStr) -> Self { in from()
133 fn from(t: Option<&'a CStr>) -> Self { in from()
147 fn from(fd: BorrowedFd<'a>) -> Self { in from()
280 fn from(i: ClockId) -> Self { in from()
288 fn from(i: TimerfdClockId) -> Self { in from()
321 fn from(mode: Mode) -> Self { in from()
328 fn from(pair: (Mode, FileType)) -> Self { in from()
335 fn from(flags: crate::fs::AtFlags) -> Self { in from()
342 fn from(flags: crate::fs::XattrFlags) -> Self { in from()
349 fn from(flags: crate::fs::inotify::CreateFlags) -> Self { in from()
[all …]
/external/rust/crates/glam/tests/
Dsupport.rs14 fn to_radians(self) -> Self; in to_radians()
77 fn approx_eq(&self, other: &Self, max_abs_diff: f32) -> bool { in approx_eq()
81 fn abs_diff(&self, other: &Self) -> Self { in abs_diff()
91 fn approx_eq(&self, other: &Self, max_abs_diff: f32) -> bool { in approx_eq()
95 fn abs_diff(&self, other: &Self) -> Self { in abs_diff()
105 fn approx_eq(&self, other: &Self, max_abs_diff: f32) -> bool { in approx_eq()
109 fn abs_diff(&self, other: &Self) -> Self { in abs_diff()
120 fn approx_eq(&self, other: &Self, max_abs_diff: f32) -> bool { in approx_eq()
124 fn abs_diff(&self, other: &Self) -> Self { in abs_diff()
135 fn approx_eq(&self, other: &Self, max_abs_diff: f32) -> bool { in approx_eq()
[all …]
/external/rust/crates/fs-err/src/
Dopen_options.rs18 pub fn read(&mut self, read: bool) -> &mut Self { in read() method
26 pub fn write(&mut self, write: bool) -> &mut Self { in write() method
34 pub fn append(&mut self, append: bool) -> &mut Self { in append() method
42 pub fn truncate(&mut self, truncate: bool) -> &mut Self { in truncate() method
50 pub fn create(&mut self, create: bool) -> &mut Self { in create() method
58 pub fn create_new(&mut self, create_new: bool) -> &mut Self { in create_new() method
83 pub fn from_options(options: fs::OpenOptions) -> Self { in from_options()
108 fn mode(&mut self, mode: u32) -> &mut Self { in mode() method
113 fn custom_flags(&mut self, flags: i32) -> &mut Self { in custom_flags()
126 fn access_mode(&mut self, access: u32) -> &mut Self { in access_mode()
[all …]
/external/rust/crates/protobuf/src/
Dmisc.rs39 fn from(inner: well_known_types::wrappers::BoolValue) -> Self { in from()
45 fn from(inner: bool) -> Self { in from()
55 fn from(inner: well_known_types::wrappers::BytesValue) -> Self { in from()
61 fn from(inner: Vec<u8>) -> Self { in from()
71 fn from(inner: well_known_types::wrappers::DoubleValue) -> Self { in from()
77 fn from(inner: f64) -> Self { in from()
87 fn from(inner: well_known_types::wrappers::FloatValue) -> Self { in from()
93 fn from(inner: f32) -> Self { in from()
103 fn from(inner: well_known_types::wrappers::Int32Value) -> Self { in from()
109 fn from(inner: i32) -> Self { in from()
[all …]
/external/rust/crates/serde_json/src/value/
Dfrom.rs42 fn from(f: f32) -> Self { in from()
58 fn from(f: f64) -> Self { in from()
74 fn from(f: bool) -> Self { in from()
90 fn from(f: String) -> Self { in from()
106 fn from(f: &str) -> Self { in from()
131 fn from(f: Cow<'a, str>) -> Self { in from()
147 fn from(f: Number) -> Self { in from()
164 fn from(f: Map<String, Value>) -> Self { in from()
180 fn from(f: Vec<T>) -> Self { in from()
196 fn from(f: &'a [T]) -> Self { in from()
[all …]
/external/rust/crates/uniffi_core/src/
Dffi_converter_traits.rs104 fn try_lift(v: Self::FfiType) -> Result<Self>; in try_lift()
114 fn write(obj: Self, buf: &mut Vec<u8>); in write()
128 fn try_read(buf: &mut &[u8]) -> Result<Self>; in try_read()
156 fn try_lift(v: Self::FfiType) -> Result<Arc<Self>>; in try_lift()
157 fn write(obj: Arc<Self>, buf: &mut Vec<u8>); in write()
158 fn try_read(buf: &mut &[u8]) -> Result<Arc<Self>>; in try_read()
173 fn try_lift(v: Self::FfiType) -> Result<Self> { in try_lift()
177 fn write(obj: Self, buf: &mut Vec<u8>) { in write()
181 fn try_read(buf: &mut &[u8]) -> Result<Self> { in try_read()
206 fn try_lift(v: Self::FfiType) -> Result<Self>; in try_lift()
[all …]
/external/rust/crates/clap/3.2.23/src/builder/
Darg.rs122 pub fn new<S: Into<&'help str>>(n: S) -> Self { in new()
130 pub fn id<S: Into<&'help str>>(mut self, n: S) -> Self { in id()
150 pub fn name<S: Into<&'help str>>(self, n: S) -> Self { in name()
180 pub fn short(mut self, s: char) -> Self { in short()
218 pub fn long(mut self, l: &'help str) -> Self { in long()
251 pub fn alias<S: Into<&'help str>>(mut self, name: S) -> Self { in alias()
277 pub fn short_alias(mut self, name: char) -> Self { in short_alias()
306 pub fn aliases(mut self, names: &[&'help str]) -> Self { in aliases()
333 pub fn short_aliases(mut self, names: &[char]) -> Self { in short_aliases()
362 pub fn visible_alias<S: Into<&'help str>>(mut self, name: S) -> Self { in visible_alias()
[all …]

12345678910>>...153