Home
last modified time | relevance | path

Searched refs:as_f64 (Results 1 – 22 of 22) sorted by relevance

/external/rust/crates/plotters/src/coord/ranged1d/combinators/
Dlogarithmic.rs10 fn as_f64(&self) -> f64; in as_f64() method
18 fn as_f64(&self) -> f64 {
35 fn as_f64(&self) -> f64 {
97 value.as_f64() in zero_point()
115 let mut start = spec.range.start.as_f64() - zero_point; in from()
116 let mut end = spec.range.end.as_f64() - zero_point; in from()
163 let fv = value.as_f64() - self.zero_point; in value_to_f64()
181 (V::as_f64(&a) - V::as_f64(&b)).abs() < std::f64::EPSILON in is_inf()
/external/flatbuffers/tests/rust_usage_test/tests/flexbuffers_tests/
Dother_api.rs54 assert_eq!(r.as_f64(), 3.0); in as_num()
59 assert_eq!(a.as_f64(), 4.0); // length. in as_num()
99 assert_eq!(v0.as_f64(), 3.1415); in string_as_num()
111 assert_eq!(v1.as_f64(), 9001.0); in string_as_num()
124 assert_eq!(v2.as_f64(), 42.0); in string_as_num()
148 assert_eq!(n.as_f64(), 0.0); in null_reader()
Dinterop.rs31 assert_eq!(vec.idx(5).as_f64(), 4.0); in read_golden_flexbuffer()
47 assert_eq!(m.idx("foo").as_f64(), 100.0); in read_golden_flexbuffer()
Drwyw.rs80 xs.iter().enumerate().all(|(i, &x)| (r.idx(i).as_f64() - x).abs() < core::f64::EPSILON)
/external/flatbuffers/tests/rust_serialize_test/src/
Dmain.rs67 assert_eq!(pos.get("x").unwrap().as_f64().unwrap(), 1.0); in main()
68 assert_eq!(pos.get("y").unwrap().as_f64().unwrap(), 2.0); in main()
69 assert_eq!(pos.get("z").unwrap().as_f64().unwrap(), 3.0); in main()
/external/rust/crates/serde_json/src/lexical/
Dnum.rs58 fn as_f64(self) -> f64; in as_f64() method
91 fn as_f64(self) -> f64 {
124 as_cast_impl!(f64, as_f64);
/external/flatbuffers/rust/flexbuffers/src/reader/
Dmod.rs495 Float => self.as_f64().abs() > std::f64::EPSILON, in as_bool()
559 pub fn as_f64(&self) -> f64 { in as_f64() method
577 self.as_f64() as f32 in as_f32()
607 Float => write!(f, "{}", self.as_f64()), in fmt()
Dserialize.rs38 (Float, _) | (IndirectFloat, _) => serializer.serialize_f64(self.as_f64()), in serialize()
Dde.rs186 (Float, W64) => visitor.visit_f64(self.as_f64()), in deserialize_any()
/external/rust/crates/serde_json/src/value/
Dmod.rs646 pub fn as_f64(&self) -> Option<f64> { in as_f64() method
648 Value::Number(n) => n.as_f64(), in as_f64()
Dpartial_eq.rs13 value.as_f64().map_or(false, |i| i == other) in eq_f64()
/external/rust/crates/serde_json/tests/lexical/
Dnum.rs11 let _: f64 = t.as_f64(); in check_as_primitive()
/external/rust/crates/rusqlite/src/types/
Dvalue_ref.rs66 pub fn as_f64(&self) -> FromSqlResult<f64> { in as_f64() method
/external/rust/crates/serde_json/src/
Dnumber.rs240 pub fn as_f64(&self) -> Option<f64> { in as_f64() method
490 } else if let Some(f) = self.as_f64() {
/external/rust/crates/glam/src/f32/scalar/
Dquat.rs663 pub fn as_f64(self) -> DQuat { in as_f64() method
/external/rust/crates/glam/src/f32/wasm32/
Dquat.rs701 pub fn as_f64(self) -> DQuat { in as_f64() method
/external/rust/crates/glam/src/f32/sse2/
Dquat.rs711 pub fn as_f64(self) -> DQuat { in as_f64() method
/external/rust/crates/glam/src/f32/coresimd/
Dquat.rs686 pub fn as_f64(self) -> DQuat { in as_f64() method
/external/rust/crates/tinytemplate/src/
Dtemplate.rs332 Value::Number(n) => match n.as_f64() { in value_is_truthy()
/external/rust/crates/glam/
DCHANGELOG.md208 * Removed deprecated `as_f32()`, `as_f64()`, `as_i32()` and `as_u32()` methods.
259 * Deprecated `as_f32()`, `as_f64()`, `as_i32()` and `as_u32()` methods in favor
/external/rust/crates/glam/tests/
Dquat.rs603 Quat::from_euler(EulerRot::YXZ, 1.0, 2.0, 3.0).as_f64()
/external/rust/crates/serde_json/tests/
Dtest.rs943 assert_eq!(v.unwrap().as_f64(), None); in test_value_as_f64()