Home
last modified time | relevance | path

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

12345678910>>...13

/external/rust/crates/nix/src/
Dpoll_timeout.rs67 fn try_from(x: Duration) -> std::result::Result<Self, Self::Error> { in try_from() method
76 fn try_from(x: u128) -> std::result::Result<Self, Self::Error> { in try_from() method
85 fn try_from(x: u64) -> std::result::Result<Self, Self::Error> { in try_from() method
94 fn try_from(x: u32) -> std::result::Result<Self, Self::Error> { in try_from() method
113 fn try_from(x: i128) -> std::result::Result<Self, Self::Error> { in try_from() method
125 fn try_from(x: i64) -> std::result::Result<Self, Self::Error> { in try_from() method
137 fn try_from(x: i32) -> std::result::Result<Self, Self::Error> { in try_from() method
146 fn try_from(x: i16) -> std::result::Result<Self, Self::Error> { in try_from() method
155 fn try_from(x: i8) -> std::result::Result<Self, Self::Error> { in try_from() method
164 fn try_from(x: PollTimeout) -> std::result::Result<Self, ()> { in try_from() method
[all …]
/external/rust/crates/gdbstub/src/protocol/common/
Dthread_id.rs29 fn try_from(s: &[u8]) -> Result<Self, ()> { in try_from() method
58 fn try_from(s: &[u8]) -> Result<Self, ()> { in try_from() method
70 fn try_from(s: &mut [u8]) -> Result<Self, ()> { in try_from() method
78 fn try_from(s: &mut [u8]) -> Result<Self, ()> { in try_from() method
106 fn try_from(id: IdKind) -> Result<SpecificIdKind, ()> { in try_from() method
118 fn try_from(thread: ThreadId) -> Result<SpecificThreadId, ()> { in try_from() method
141 fn try_from(thread: ThreadId) -> Result<ConcreteThreadId, ()> { in try_from() method
155 fn try_from(value: IdKind) -> Result<NonZeroUsize, ()> { in try_from() method
/external/rust/crates/pdl-compiler/tests/generated/rust/
Dpacket_decl_parent_with_alias_child_little_endian.rs37 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() method
157 fn try_from(parent: &Parent) -> Result<AliasChild, Self::Error> { in try_from() method
163 fn try_from(parent: Parent) -> Result<AliasChild, Self::Error> { in try_from() method
169 fn try_from(packet: &AliasChild) -> Result<Parent, Self::Error> { in try_from() method
177 fn try_from(packet: AliasChild) -> Result<Parent, Self::Error> { in try_from() method
239 fn try_from(parent: &Parent) -> Result<NormalChild, Self::Error> { in try_from() method
245 fn try_from(parent: Parent) -> Result<NormalChild, Self::Error> { in try_from() method
251 fn try_from(packet: &NormalChild) -> Result<Parent, Self::Error> { in try_from() method
259 fn try_from(packet: NormalChild) -> Result<Parent, Self::Error> { in try_from() method
303 fn try_from(parent: &AliasChild) -> Result<NormalGrandChild1, Self::Error> { in try_from() method
[all …]
Dpacket_decl_parent_with_alias_child_big_endian.rs37 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() method
157 fn try_from(parent: &Parent) -> Result<AliasChild, Self::Error> { in try_from() method
163 fn try_from(parent: Parent) -> Result<AliasChild, Self::Error> { in try_from() method
169 fn try_from(packet: &AliasChild) -> Result<Parent, Self::Error> { in try_from() method
177 fn try_from(packet: AliasChild) -> Result<Parent, Self::Error> { in try_from() method
239 fn try_from(parent: &Parent) -> Result<NormalChild, Self::Error> { in try_from() method
245 fn try_from(parent: Parent) -> Result<NormalChild, Self::Error> { in try_from() method
251 fn try_from(packet: &NormalChild) -> Result<Parent, Self::Error> { in try_from() method
259 fn try_from(packet: NormalChild) -> Result<Parent, Self::Error> { in try_from() method
303 fn try_from(parent: &AliasChild) -> Result<NormalGrandChild1, Self::Error> { in try_from() method
[all …]
Dpacket_decl_grand_children_little_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
206 fn try_from(parent: &Parent) -> Result<Child, Self::Error> { in try_from() method
212 fn try_from(parent: Parent) -> Result<Child, Self::Error> { in try_from() method
218 fn try_from(packet: &Child) -> Result<Parent, Self::Error> { in try_from() method
231 fn try_from(packet: Child) -> Result<Parent, Self::Error> { in try_from() method
342 fn try_from(parent: &Child) -> Result<GrandChild, Self::Error> { in try_from() method
348 fn try_from(parent: Child) -> Result<GrandChild, Self::Error> { in try_from() method
354 fn try_from(packet: &GrandChild) -> Result<Child, Self::Error> { in try_from() method
367 fn try_from(packet: GrandChild) -> Result<Child, Self::Error> { in try_from() method
373 fn try_from(packet: &GrandChild) -> Result<Parent, Self::Error> { in try_from() method
[all …]
Dstruct_decl_grand_children_little_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
207 fn try_from(parent: &Parent) -> Result<Child, Self::Error> { in try_from() method
213 fn try_from(parent: Parent) -> Result<Child, Self::Error> { in try_from() method
219 fn try_from(packet: &Child) -> Result<Parent, Self::Error> { in try_from() method
232 fn try_from(packet: Child) -> Result<Parent, Self::Error> { in try_from() method
344 fn try_from(parent: &Child) -> Result<GrandChild, Self::Error> { in try_from() method
350 fn try_from(parent: Child) -> Result<GrandChild, Self::Error> { in try_from() method
356 fn try_from(packet: &GrandChild) -> Result<Child, Self::Error> { in try_from() method
369 fn try_from(packet: GrandChild) -> Result<Child, Self::Error> { in try_from() method
375 fn try_from(packet: &GrandChild) -> Result<Parent, Self::Error> { in try_from() method
[all …]
Dpacket_decl_grand_children_big_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
206 fn try_from(parent: &Parent) -> Result<Child, Self::Error> { in try_from() method
212 fn try_from(parent: Parent) -> Result<Child, Self::Error> { in try_from() method
218 fn try_from(packet: &Child) -> Result<Parent, Self::Error> { in try_from() method
231 fn try_from(packet: Child) -> Result<Parent, Self::Error> { in try_from() method
342 fn try_from(parent: &Child) -> Result<GrandChild, Self::Error> { in try_from() method
348 fn try_from(parent: Child) -> Result<GrandChild, Self::Error> { in try_from() method
354 fn try_from(packet: &GrandChild) -> Result<Child, Self::Error> { in try_from() method
367 fn try_from(packet: GrandChild) -> Result<Child, Self::Error> { in try_from() method
373 fn try_from(packet: &GrandChild) -> Result<Parent, Self::Error> { in try_from() method
[all …]
Dstruct_decl_grand_children_big_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
207 fn try_from(parent: &Parent) -> Result<Child, Self::Error> { in try_from() method
213 fn try_from(parent: Parent) -> Result<Child, Self::Error> { in try_from() method
219 fn try_from(packet: &Child) -> Result<Parent, Self::Error> { in try_from() method
232 fn try_from(packet: Child) -> Result<Parent, Self::Error> { in try_from() method
344 fn try_from(parent: &Child) -> Result<GrandChild, Self::Error> { in try_from() method
350 fn try_from(parent: Child) -> Result<GrandChild, Self::Error> { in try_from() method
356 fn try_from(packet: &GrandChild) -> Result<Child, Self::Error> { in try_from() method
369 fn try_from(packet: GrandChild) -> Result<Child, Self::Error> { in try_from() method
375 fn try_from(packet: &GrandChild) -> Result<Parent, Self::Error> { in try_from() method
[all …]
Dstruct_decl_child_structs_little_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
182 fn try_from(parent: &Foo) -> Result<Bar, Self::Error> { in try_from() method
188 fn try_from(parent: Foo) -> Result<Bar, Self::Error> { in try_from() method
194 fn try_from(packet: &Bar) -> Result<Foo, Self::Error> { in try_from() method
206 fn try_from(packet: Bar) -> Result<Foo, Self::Error> { in try_from() method
282 fn try_from(parent: &Foo) -> Result<Baz, Self::Error> { in try_from() method
288 fn try_from(parent: Foo) -> Result<Baz, Self::Error> { in try_from() method
294 fn try_from(packet: &Baz) -> Result<Foo, Self::Error> { in try_from() method
306 fn try_from(packet: Baz) -> Result<Foo, Self::Error> { in try_from() method
Dpacket_decl_child_packets_big_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
181 fn try_from(parent: &Foo) -> Result<Bar, Self::Error> { in try_from() method
187 fn try_from(parent: Foo) -> Result<Bar, Self::Error> { in try_from() method
193 fn try_from(packet: &Bar) -> Result<Foo, Self::Error> { in try_from() method
205 fn try_from(packet: Bar) -> Result<Foo, Self::Error> { in try_from() method
281 fn try_from(parent: &Foo) -> Result<Baz, Self::Error> { in try_from() method
287 fn try_from(parent: Foo) -> Result<Baz, Self::Error> { in try_from() method
293 fn try_from(packet: &Baz) -> Result<Foo, Self::Error> { in try_from() method
305 fn try_from(packet: Baz) -> Result<Foo, Self::Error> { in try_from() method
Dstruct_decl_child_structs_big_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
182 fn try_from(parent: &Foo) -> Result<Bar, Self::Error> { in try_from() method
188 fn try_from(parent: Foo) -> Result<Bar, Self::Error> { in try_from() method
194 fn try_from(packet: &Bar) -> Result<Foo, Self::Error> { in try_from() method
206 fn try_from(packet: Bar) -> Result<Foo, Self::Error> { in try_from() method
282 fn try_from(parent: &Foo) -> Result<Baz, Self::Error> { in try_from() method
288 fn try_from(parent: Foo) -> Result<Baz, Self::Error> { in try_from() method
294 fn try_from(packet: &Baz) -> Result<Foo, Self::Error> { in try_from() method
306 fn try_from(packet: Baz) -> Result<Foo, Self::Error> { in try_from() method
Dpacket_decl_child_packets_little_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
181 fn try_from(parent: &Foo) -> Result<Bar, Self::Error> { in try_from() method
187 fn try_from(parent: Foo) -> Result<Bar, Self::Error> { in try_from() method
193 fn try_from(packet: &Bar) -> Result<Foo, Self::Error> { in try_from() method
205 fn try_from(packet: Bar) -> Result<Foo, Self::Error> { in try_from() method
281 fn try_from(parent: &Foo) -> Result<Baz, Self::Error> { in try_from() method
287 fn try_from(parent: Foo) -> Result<Baz, Self::Error> { in try_from() method
293 fn try_from(packet: &Baz) -> Result<Foo, Self::Error> { in try_from() method
305 fn try_from(packet: Baz) -> Result<Foo, Self::Error> { in try_from() method
/external/rust/crates/jni/0.20.0/src/wrapper/objects/
Djvalue.rs179 fn try_from(value: JValue<'a>) -> Result<Self> { in try_from() method
203 fn try_from(value: JValue<'a>) -> Result<Self> { in try_from() method
221 fn try_from(value: JValue<'a>) -> Result<Self> { in try_from() method
239 fn try_from(value: JValue<'a>) -> Result<Self> { in try_from() method
257 fn try_from(value: JValue<'a>) -> Result<Self> { in try_from() method
275 fn try_from(value: JValue<'a>) -> Result<Self> { in try_from() method
293 fn try_from(value: JValue<'a>) -> Result<Self> { in try_from() method
311 fn try_from(value: JValue<'a>) -> Result<Self> { in try_from() method
329 fn try_from(value: JValue<'a>) -> Result<Self> { in try_from() method
347 fn try_from(value: JValue<'a>) -> Result<Self> { in try_from() method
/external/rust/crates/jni/src/wrapper/objects/
Djvalue.rs243 fn try_from(value: JValueOwned<'local>) -> Result<Self> { in try_from() method
267 fn try_from(value: JValueGen<O>) -> Result<Self> { in try_from() method
285 fn try_from(value: JValueGen<O>) -> Result<Self> { in try_from() method
303 fn try_from(value: JValueGen<O>) -> Result<Self> { in try_from() method
321 fn try_from(value: JValueGen<O>) -> Result<Self> { in try_from() method
339 fn try_from(value: JValueGen<O>) -> Result<Self> { in try_from() method
357 fn try_from(value: JValueGen<O>) -> Result<Self> { in try_from() method
375 fn try_from(value: JValueGen<O>) -> Result<Self> { in try_from() method
393 fn try_from(value: JValueGen<O>) -> Result<Self> { in try_from() method
411 fn try_from(value: JValueGen<O>) -> Result<Self> { in try_from() method
/external/rust/crates/pdl-compiler/tests/generated/
Dstruct_decl_grand_children_big_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
87 fn try_from(packet: &Parent) -> Result<Self, Self::Error> { in try_from() method
93 fn try_from(packet: &Parent) -> Result<Self, Self::Error> { in try_from() method
219 fn try_from(parent: &Parent) -> Result<Child, Self::Error> { in try_from() method
225 fn try_from(packet: &Child) -> Result<Parent, Self::Error> { in try_from() method
238 fn try_from(packet: &Child) -> Result<Self, Self::Error> { in try_from() method
244 fn try_from(packet: &Child) -> Result<Self, Self::Error> { in try_from() method
348 fn try_from(parent: &Child) -> Result<GrandChild, Self::Error> { in try_from() method
354 fn try_from(packet: &GrandChild) -> Result<Child, Self::Error> { in try_from() method
367 fn try_from(packet: &GrandChild) -> Result<Parent, Self::Error> { in try_from() method
[all …]
Dstruct_decl_grand_children_little_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
87 fn try_from(packet: &Parent) -> Result<Self, Self::Error> { in try_from() method
93 fn try_from(packet: &Parent) -> Result<Self, Self::Error> { in try_from() method
219 fn try_from(parent: &Parent) -> Result<Child, Self::Error> { in try_from() method
225 fn try_from(packet: &Child) -> Result<Parent, Self::Error> { in try_from() method
238 fn try_from(packet: &Child) -> Result<Self, Self::Error> { in try_from() method
244 fn try_from(packet: &Child) -> Result<Self, Self::Error> { in try_from() method
348 fn try_from(parent: &Child) -> Result<GrandChild, Self::Error> { in try_from() method
354 fn try_from(packet: &GrandChild) -> Result<Child, Self::Error> { in try_from() method
367 fn try_from(packet: &GrandChild) -> Result<Parent, Self::Error> { in try_from() method
[all …]
Dstruct_decl_child_structs_little_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
86 fn try_from(packet: &Foo) -> Result<Self, Self::Error> { in try_from() method
92 fn try_from(packet: &Foo) -> Result<Self, Self::Error> { in try_from() method
194 fn try_from(parent: &Foo) -> Result<Bar, Self::Error> { in try_from() method
200 fn try_from(packet: &Bar) -> Result<Foo, Self::Error> { in try_from() method
212 fn try_from(packet: &Bar) -> Result<Self, Self::Error> { in try_from() method
218 fn try_from(packet: &Bar) -> Result<Self, Self::Error> { in try_from() method
286 fn try_from(parent: &Foo) -> Result<Baz, Self::Error> { in try_from() method
292 fn try_from(packet: &Baz) -> Result<Foo, Self::Error> { in try_from() method
304 fn try_from(packet: &Baz) -> Result<Self, Self::Error> { in try_from() method
[all …]
Dstruct_decl_child_structs_big_endian.rs36 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() method
86 fn try_from(packet: &Foo) -> Result<Self, Self::Error> { in try_from() method
92 fn try_from(packet: &Foo) -> Result<Self, Self::Error> { in try_from() method
194 fn try_from(parent: &Foo) -> Result<Bar, Self::Error> { in try_from() method
200 fn try_from(packet: &Bar) -> Result<Foo, Self::Error> { in try_from() method
212 fn try_from(packet: &Bar) -> Result<Self, Self::Error> { in try_from() method
218 fn try_from(packet: &Bar) -> Result<Self, Self::Error> { in try_from() method
286 fn try_from(parent: &Foo) -> Result<Baz, Self::Error> { in try_from() method
292 fn try_from(packet: &Baz) -> Result<Foo, Self::Error> { in try_from() method
304 fn try_from(packet: &Baz) -> Result<Self, Self::Error> { in try_from() method
[all …]
/external/rust/crates/ciborium/src/value/
Dinteger.rs110 fn try_from(value: i128) -> Result<Self, Self::Error> { in try_from() method
124 fn try_from(value: u128) -> Result<Self, Self::Error> { in try_from() method
140 fn try_from(value: Integer) -> Result<Self, Self::Error> { in try_from() method
/external/rust/crates/pkcs1/src/
Dpublic_key.rs64 fn try_from(bytes: &'a [u8]) -> Result<Self> { in try_from() method
73 fn try_from(spki: RsaPublicKey<'_>) -> Result<Document> { in try_from() method
82 fn try_from(spki: &RsaPublicKey<'_>) -> Result<Document> { in try_from() method
/external/rust/beto-rust/nearby/presence/np_adv/src/legacy/data_elements/de_type/
Dmod.rs39 pub(crate) const fn try_from(value: u8) -> Result<Self, DeTypeCodeOutOfRange> { in try_from() method
62 pub(crate) fn try_from(value: usize) -> Result<Self, DeLengthOutOfRange> { in try_from() method
92 pub(crate) fn try_from(value: u8) -> Result<Self, DeLengthOutOfRange> { in try_from() method
/external/uwb/src/rust/uwb_core/src/uci/
Dresponse.rs113 fn try_from( in try_from() method
139 fn try_from(evt: uwb_uci_packets::CoreResponse) -> std::result::Result<Self, Self::Error> { in try_from() method
178 fn try_from( in try_from() method
303 fn try_from( in try_from() method
326 fn try_from(evt: uwb_uci_packets::AndroidResponse) -> std::result::Result<Self, Self::Error> { in try_from() method
/external/rust/crates/hyper/src/ext/
Dh1_reason_phrase.rs65 fn try_from(reason: &[u8]) -> Result<Self, Self::Error> { in try_from() method
77 fn try_from(reason: Vec<u8>) -> Result<Self, Self::Error> { in try_from() method
89 fn try_from(reason: String) -> Result<Self, Self::Error> { in try_from() method
101 fn try_from(reason: Bytes) -> Result<Self, Self::Error> { in try_from() method
/external/rust/crates/der/src/asn1/
Dgeneralized_time.rs226 fn try_from(time: SystemTime) -> Result<GeneralizedTime> { in try_from() method
235 fn try_from(time: &SystemTime) -> Result<GeneralizedTime> { in try_from() method
244 fn try_from(any: AnyRef<'a>) -> Result<SystemTime> { in try_from() method
287 fn try_from(time: PrimitiveDateTime) -> Result<GeneralizedTime> { in try_from() method
296 fn try_from(time: &PrimitiveDateTime) -> Result<GeneralizedTime> { in try_from() method
305 fn try_from(time: GeneralizedTime) -> Result<PrimitiveDateTime> { in try_from() method
/external/rust/crates/sec1/src/
Dprivate_key.rs142 fn try_from(bytes: &'a [u8]) -> Result<EcPrivateKey<'a>> { in try_from() method
160 fn try_from(private_key: EcPrivateKey<'_>) -> Result<Self> { in try_from() method
169 fn try_from(private_key: &EcPrivateKey<'_>) -> Result<Self> { in try_from() method

12345678910>>...13