Home
last modified time | relevance | path

Searched refs:to_u32 (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/num-traits/src/
Dcast.rs90 fn to_u32(&self) -> Option<u32> { in to_u32() method
91 self.to_u64().as_ref().and_then(ToPrimitive::to_u32) in to_u32()
184 fn to_u32 -> u32;
257 fn to_u32 -> u32;
384 fn to_u32 -> u32;
602 impl_from_primitive!(u32, to_u32);
632 fn to_u32 -> u32;
723 impl_num_cast!(u32, to_u32);
/external/rust/crates/url/src/
Dlib.rs133 use crate::parser::{to_u32, Context, Parser, SchemeType, PATH_SEGMENT, USERINFO};
1391 self.fragment_start = Some(to_u32(self.serialization.len()).unwrap()); in set_fragment()
1411 self.fragment_start = Some(to_u32(self.serialization.len()).unwrap()); in restore_already_parsed_fragment()
1446 self.query_start = Some(to_u32(self.serialization.len()).unwrap()); in set_query()
1504 self.query_start = Some(to_u32(query_start).unwrap()); in query_pairs_mut()
1550 let old_after_path_pos = to_u32(self.serialization.len()).unwrap(); in set_path()
1582 let new_after_path_position = to_u32(self.serialization.len()).unwrap(); in restore_after_path()
1690 let new_path_start = to_u32(self.serialization.len()).unwrap(); in set_port_internal()
1865 self.host_end = to_u32(self.serialization.len()).unwrap(); in set_host_internal()
1874 let new_suffix_pos = to_u32(self.serialization.len()).unwrap(); in set_host_internal()
[all …]
Dpath_segments.rs9 use crate::parser::{self, to_u32, SchemeType};
47 let old_after_path_position = to_u32(url.serialization.len()).unwrap(); in new()
Dparser.rs427 let scheme_end = to_u32(self.serialization.len())?; in parse_with_scheme()
482 let path_start = to_u32(self.serialization.len())?; in parse_non_special()
530 let mut host_end = to_u32(self.serialization.len())?; in parse_file()
853 let host_start = to_u32(self.serialization.len())?; in after_double_slash()
860 let path_start = to_u32(self.serialization.len())?; in after_double_slash()
901 None => return Ok((to_u32(self.serialization.len())?, input)), in parse_userinfo()
912 return Ok((to_u32(self.serialization.len())?, remaining)); in parse_userinfo()
925 username_end = Some(to_u32(self.serialization.len())?); in parse_userinfo()
942 None => to_u32(self.serialization.len())?, in parse_userinfo()
958 let host_end = to_u32(self.serialization.len())?; in parse_host_and_port()
[all …]
/external/rust/crates/chrono/src/format/
Dparsed.rs214 set_if_consistent(&mut self.month, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_month()
220 set_if_consistent(&mut self.week_from_sun, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_week_from_sun()
226 set_if_consistent(&mut self.week_from_mon, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_week_from_mon()
232 set_if_consistent(&mut self.isoweek, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_isoweek()
244 set_if_consistent(&mut self.ordinal, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_ordinal()
250 set_if_consistent(&mut self.day, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_day()
274 let v = value.to_u32().ok_or(OUT_OF_RANGE)?; in set_hour()
283 set_if_consistent(&mut self.minute, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_minute()
289 set_if_consistent(&mut self.second, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_second()
295 set_if_consistent(&mut self.nanosecond, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_nanosecond()
/external/rust/crates/num-derive/tests/
Dnewtype.rs47 assert_eq!(MyFloat(25.0).to_u32(), Some(25)); in test_to_primitive()
/external/rust/crates/num-traits/tests/
Dcast.rs45 assert_eq!(i.to_u32(), w.to_u32()); in wrapping_to_primitive()
388 assert_eq_to!(to_u8 to_u16 to_u32 to_u64 to_usize); in newtype_to_primitive()
/external/rust/crates/num-derive/src/
Dlib.rs476 fn to_u32(&self) -> Option<u32> { in to_primitive()
477 <#inner_ty as #import::ToPrimitive>::to_u32(&self.0) in to_primitive()
/external/rust/crates/half/src/
Dbfloat.rs675 fn to_u32(&self) -> Option<u32> { in to_u32() method
676 Self::to_f32(*self).to_u32() in to_u32()
Dbinary16.rs63 fn to_u32(&self) -> Option<u32> { in to_u32() method
64 Self::to_f32(*self).to_u32() in to_u32()
/external/rust/crates/regex-automata/src/
Dsparse.rs281 pub fn to_u32(&self) -> Result<SparseDFA<Vec<u8>, u32>> { in to_u32() method
Ddense.rs385 pub fn to_u32(&self) -> Result<DenseDFA<Vec<u32>, u32>> { in to_u32() method