| 1 | use craterust-analyzer cargo half 2.7.1 crate/::{bf16rust-analyzer cargo half 2.7.1 bfloat/bf16#, f16rust-analyzer cargo half 2.7.1 binary16/f16#}; |
| 2 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/::Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#; |
| 3 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::{numrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/::FpCategoryrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/FpCategory#, opsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/::Divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#}; |
| 4 | use num_traitsrust-analyzer cargo num-traits 0.2.16 crate/::{ |
| 5 | AsPrimitiverust-analyzer cargo num-traits 0.2.16 cast/AsPrimitive#, Boundedrust-analyzer cargo num-traits 0.2.16 bounds/Bounded#, FloatConstrust-analyzer cargo num-traits 0.2.16 float/FloatConst#, FromBytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/FromBytes#, FromPrimitiverust-analyzer cargo num-traits 0.2.16 cast/FromPrimitive#, Numrust-analyzer cargo num-traits 0.2.16 Num#, NumCastrust-analyzer cargo num-traits 0.2.16 cast/NumCast#, Onerust-analyzer cargo num-traits 0.2.16 identities/One#, ToBytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/ToBytes#, |
| 6 | ToPrimitiverust-analyzer cargo num-traits 0.2.16 cast/ToPrimitive#, Zerorust-analyzer cargo num-traits 0.2.16 identities/Zero#, |
| 7 | }; |
| 8 | |
| 9 | impl ToPrimitiverust-analyzer cargo num-traits 0.2.16 cast/ToPrimitive# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 10 | #[inline] |
| 11 | fn to_i64rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]to_i64().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i64> { |
| 12 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_i64rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_i64().() |
| 13 | } |
| 14 | #[inline] |
| 15 | fn to_u64rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]to_u64().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u64> { |
| 16 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_u64rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_u64().() |
| 17 | } |
| 18 | #[inline] |
| 19 | fn to_i8rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]to_i8().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i8> { |
| 20 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_i8rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_i8().() |
| 21 | } |
| 22 | #[inline] |
| 23 | fn to_u8rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]to_u8().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u8> { |
| 24 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_u8rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_u8().() |
| 25 | } |
| 26 | #[inline] |
| 27 | fn to_i16rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]to_i16().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i16> { |
| 28 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_i16rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_i16().() |
| 29 | } |
| 30 | #[inline] |
| 31 | fn to_u16rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]to_u16().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u16> { |
| 32 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_u16rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_u16().() |
| 33 | } |
| 34 | #[inline] |
| 35 | fn to_i32rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]to_i32().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i32> { |
| 36 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_i32rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_i32().() |
| 37 | } |
| 38 | #[inline] |
| 39 | fn to_u32rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]to_u32().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u32> { |
| 40 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_u32rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_u32().() |
| 41 | } |
| 42 | #[inline] |
| 43 | fn to_f32rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]to_f32().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<f32> { |
| 44 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self)) |
| 45 | } |
| 46 | #[inline] |
| 47 | fn to_f64rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]to_f64().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<f64> { |
| 48 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToPrimitive]::to_f64rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f64().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self)) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | impl FromPrimitiverust-analyzer cargo num-traits 0.2.16 cast/FromPrimitive# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 53 | #[inline] |
| 54 | fn from_i64rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]from_i64().(n: i64) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]> { |
| 55 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[i64][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().) |
| 56 | } |
| 57 | #[inline] |
| 58 | fn from_u64rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]from_u64().(n: u64) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]> { |
| 59 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[u64][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().) |
| 60 | } |
| 61 | #[inline] |
| 62 | fn from_i8rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]from_i8().(n: i8) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]> { |
| 63 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[i8][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().) |
| 64 | } |
| 65 | #[inline] |
| 66 | fn from_u8rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]from_u8().(n: u8) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]> { |
| 67 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[u8][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().) |
| 68 | } |
| 69 | #[inline] |
| 70 | fn from_i16rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]from_i16().(n: i16) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]> { |
| 71 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[i16][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().) |
| 72 | } |
| 73 | #[inline] |
| 74 | fn from_u16rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]from_u16().(n: u16) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]> { |
| 75 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[u16][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().) |
| 76 | } |
| 77 | #[inline] |
| 78 | fn from_i32rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]from_i32().(n: i32) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]> { |
| 79 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[i32][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().) |
| 80 | } |
| 81 | #[inline] |
| 82 | fn from_u32rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]from_u32().(n: u32) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]> { |
| 83 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[u32][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().) |
| 84 | } |
| 85 | #[inline] |
| 86 | fn from_f32rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]from_f32().(n: f32) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]> { |
| 87 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().) |
| 88 | } |
| 89 | #[inline] |
| 90 | fn from_f64rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]from_f64().(n: f64) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]> { |
| 91 | n.to_f64rust-analyzer cargo num-traits 0.2.16 cast/impl#[f64][ToPrimitive]to_f64().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromPrimitive]::from_f64rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f64().) |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | impl Numrust-analyzer cargo num-traits 0.2.16 Num# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 96 | type FromStrRadixErrrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Num]FromStrRadixErr# = <f32 as Numrust-analyzer cargo num-traits 0.2.16 Num#>::FromStrRadixErrrust-analyzer cargo num-traits 0.2.16 Num#FromStrRadixErr#; |
| 97 | |
| 98 | #[inline] |
| 99 | fn from_str_radixrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Num]from_str_radix().(str: &str, radix: u32) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Num], Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Num]::FromStrRadixErrrust-analyzer cargo num-traits 0.2.16 Num#FromStrRadixErr#> { |
| 100 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Num]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(f32::from_str_radixrust-analyzer cargo num-traits 0.2.16 impl#[f32][Num]from_str_radix().(str, radix)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().)) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | impl Onerust-analyzer cargo num-traits 0.2.16 identities/One# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 105 | #[inline] |
| 106 | fn onerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][One]one().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][One] { |
| 107 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][One]::ONErust-analyzer cargo half 2.7.1 binary16/impl#[f16]ONE. |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | impl Zerorust-analyzer cargo num-traits 0.2.16 identities/Zero# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 112 | #[inline] |
| 113 | fn zerorust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Zero]zero().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Zero] { |
| 114 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Zero]::ZEROrust-analyzer cargo half 2.7.1 binary16/impl#[f16]ZERO. |
| 115 | } |
| 116 | |
| 117 | #[inline] |
| 118 | fn is_zerorust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Zero]is_zero().(&self) -> bool { |
| 119 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self rust-analyzer cargo half 2.7.1 binary16/impl#[f16][`PartialEq<Self>`]eq().==rust-analyzer cargo half 2.7.1 binary16/impl#[f16][`PartialEq<Self>`]eq(). rust-analyzer cargo half 2.7.1 binary16/impl#[f16][`PartialEq<Self>`]eq().Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Zero]::ZEROrust-analyzer cargo half 2.7.1 binary16/impl#[f16]ZERO. |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | impl NumCastrust-analyzer cargo num-traits 0.2.16 cast/NumCast# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 124 | #[inline] |
| 125 | fn fromrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][NumCast]from().<T: ToPrimitiverust-analyzer cargo num-traits 0.2.16 cast/ToPrimitive#>(n: T) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][NumCast]> { |
| 126 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/ToPrimitive#to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][NumCast]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().) |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | impl num_traitsrust-analyzer cargo num-traits 0.2.16 crate/::floatrust-analyzer cargo num-traits 0.2.16 float/::FloatCorerust-analyzer cargo num-traits 0.2.16 float/FloatCore# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 131 | #[inline] |
| 132 | fn infinityrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]infinity().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 133 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::INFINITYrust-analyzer cargo half 2.7.1 binary16/impl#[f16]INFINITY. |
| 134 | } |
| 135 | |
| 136 | #[inline] |
| 137 | fn neg_infinityrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]neg_infinity().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 138 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::NEG_INFINITYrust-analyzer cargo half 2.7.1 binary16/impl#[f16]NEG_INFINITY. |
| 139 | } |
| 140 | |
| 141 | #[inline] |
| 142 | fn nanrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]nan().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 143 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::NANrust-analyzer cargo half 2.7.1 binary16/impl#[f16]NAN. |
| 144 | } |
| 145 | |
| 146 | #[inline] |
| 147 | fn neg_zerorust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]neg_zero().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 148 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::NEG_ZEROrust-analyzer cargo half 2.7.1 binary16/impl#[f16]NEG_ZERO. |
| 149 | } |
| 150 | |
| 151 | #[inline] |
| 152 | fn min_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]min_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 153 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::MINrust-analyzer cargo half 2.7.1 binary16/impl#[f16]MIN. |
| 154 | } |
| 155 | |
| 156 | #[inline] |
| 157 | fn min_positive_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]min_positive_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 158 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::MIN_POSITIVErust-analyzer cargo half 2.7.1 binary16/impl#[f16]MIN_POSITIVE. |
| 159 | } |
| 160 | |
| 161 | #[inline] |
| 162 | fn epsilonrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]epsilon().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 163 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::EPSILONrust-analyzer cargo half 2.7.1 binary16/impl#[f16]EPSILON. |
| 164 | } |
| 165 | |
| 166 | #[inline] |
| 167 | fn max_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]max_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 168 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::MAXrust-analyzer cargo half 2.7.1 binary16/impl#[f16]MAX. |
| 169 | } |
| 170 | |
| 171 | #[inline] |
| 172 | fn is_nanrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]is_nan().(self) -> bool { |
| 173 | self.is_nanrust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_nan().() |
| 174 | } |
| 175 | |
| 176 | #[inline] |
| 177 | fn is_infiniterust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]is_infinite().(self) -> bool { |
| 178 | self.is_infiniterust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_infinite().() |
| 179 | } |
| 180 | |
| 181 | #[inline] |
| 182 | fn is_finiterust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]is_finite().(self) -> bool { |
| 183 | self.is_finiterust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_finite().() |
| 184 | } |
| 185 | |
| 186 | #[inline] |
| 187 | fn is_normalrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]is_normal().(self) -> bool { |
| 188 | self.is_normalrust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_normal().() |
| 189 | } |
| 190 | |
| 191 | #[inline] |
| 192 | fn classifyrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]classify().(self) -> FpCategoryrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/FpCategory# { |
| 193 | self.classifyrust-analyzer cargo half 2.7.1 binary16/impl#[f16]classify().() |
| 194 | } |
| 195 | |
| 196 | #[inline] |
| 197 | fn floorrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]floor().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 198 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().floorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]floor().()) |
| 199 | } |
| 200 | |
| 201 | #[inline] |
| 202 | fn ceilrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]ceil().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 203 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().ceilrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]ceil().()) |
| 204 | } |
| 205 | |
| 206 | #[inline] |
| 207 | fn roundrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]round().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 208 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().roundrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]round().()) |
| 209 | } |
| 210 | |
| 211 | #[inline] |
| 212 | fn truncrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]trunc().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 213 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().truncrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]trunc().()) |
| 214 | } |
| 215 | |
| 216 | #[inline] |
| 217 | fn fractrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]fract().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 218 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().fractrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]fract().()) |
| 219 | } |
| 220 | |
| 221 | #[inline] |
| 222 | fn absrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]abs().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 223 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::from_bitsrust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_bits().(self.to_bitsrust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_bits().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u16][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u16][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u16][`BitAnd<Self>`]bitand().0x7FFF) |
| 224 | } |
| 225 | |
| 226 | #[inline] |
| 227 | fn signumrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]signum().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 228 | self.signumrust-analyzer cargo half 2.7.1 binary16/impl#[f16]signum().() |
| 229 | } |
| 230 | |
| 231 | #[inline] |
| 232 | fn is_sign_positiverust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]is_sign_positive().(self) -> bool { |
| 233 | self.is_sign_positiverust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_sign_positive().() |
| 234 | } |
| 235 | |
| 236 | #[inline] |
| 237 | fn is_sign_negativerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]is_sign_negative().(self) -> bool { |
| 238 | self.is_sign_negativerust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_sign_negative().() |
| 239 | } |
| 240 | |
| 241 | fn minrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]min().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 242 | match self.partial_cmprust-analyzer cargo half 2.7.1 binary16/impl#[f16][`PartialOrd<Self>`]partial_cmp().(&other) { |
| 243 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# => { |
| 244 | if self.is_nanrust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_nan().() { |
| 245 | other |
| 246 | } else { |
| 247 | self |
| 248 | } |
| 249 | } |
| 250 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Greaterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Greater#) | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Equalrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Equal#) => other, |
| 251 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Lessrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Less#) => self, |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | fn maxrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]max().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 256 | match self.partial_cmprust-analyzer cargo half 2.7.1 binary16/impl#[f16][`PartialOrd<Self>`]partial_cmp().(&other) { |
| 257 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# => { |
| 258 | if self.is_nanrust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_nan().() { |
| 259 | other |
| 260 | } else { |
| 261 | self |
| 262 | } |
| 263 | } |
| 264 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Greaterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Greater#) | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Equalrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Equal#) => self, |
| 265 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Lessrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Less#) => other, |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | #[inline] |
| 270 | fn reciprust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]recip().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 271 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().reciprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]recip().()) |
| 272 | } |
| 273 | |
| 274 | #[inline] |
| 275 | fn powirust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]powi().(self, exp: i32) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 276 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().powirust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]powi().(exp)) |
| 277 | } |
| 278 | |
| 279 | #[inline] |
| 280 | fn to_degreesrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]to_degrees().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 281 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().to_degreesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]to_degrees().()) |
| 282 | } |
| 283 | |
| 284 | #[inline] |
| 285 | fn to_radiansrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]to_radians().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore] { |
| 286 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().to_radiansrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]to_radians().()) |
| 287 | } |
| 288 | |
| 289 | #[inline] |
| 290 | fn integer_decoderust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatCore]integer_decode().(self) -> (u64, i16, i8) { |
| 291 | num_traitsrust-analyzer cargo num-traits 0.2.16 crate/::floatrust-analyzer cargo num-traits 0.2.16 float/::FloatCorerust-analyzer cargo num-traits 0.2.16 float/FloatCore#::integer_decoderust-analyzer cargo num-traits 0.2.16 float/impl#[f32][FloatCore]integer_decode().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().()) |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | impl num_traitsrust-analyzer cargo num-traits 0.2.16 crate/::floatrust-analyzer cargo num-traits 0.2.16 float/::Floatrust-analyzer cargo num-traits 0.2.16 float/Float# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 296 | #[inline] |
| 297 | fn nanrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]nan().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 298 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::NANrust-analyzer cargo half 2.7.1 binary16/impl#[f16]NAN. |
| 299 | } |
| 300 | |
| 301 | #[inline] |
| 302 | fn infinityrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]infinity().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 303 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::INFINITYrust-analyzer cargo half 2.7.1 binary16/impl#[f16]INFINITY. |
| 304 | } |
| 305 | |
| 306 | #[inline] |
| 307 | fn neg_infinityrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]neg_infinity().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 308 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::NEG_INFINITYrust-analyzer cargo half 2.7.1 binary16/impl#[f16]NEG_INFINITY. |
| 309 | } |
| 310 | |
| 311 | #[inline] |
| 312 | fn neg_zerorust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]neg_zero().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 313 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::NEG_ZEROrust-analyzer cargo half 2.7.1 binary16/impl#[f16]NEG_ZERO. |
| 314 | } |
| 315 | |
| 316 | #[inline] |
| 317 | fn min_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]min_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 318 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::MINrust-analyzer cargo half 2.7.1 binary16/impl#[f16]MIN. |
| 319 | } |
| 320 | |
| 321 | #[inline] |
| 322 | fn min_positive_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]min_positive_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 323 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::MIN_POSITIVErust-analyzer cargo half 2.7.1 binary16/impl#[f16]MIN_POSITIVE. |
| 324 | } |
| 325 | |
| 326 | #[inline] |
| 327 | fn epsilonrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]epsilon().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 328 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::EPSILONrust-analyzer cargo half 2.7.1 binary16/impl#[f16]EPSILON. |
| 329 | } |
| 330 | |
| 331 | #[inline] |
| 332 | fn max_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]max_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 333 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::MAXrust-analyzer cargo half 2.7.1 binary16/impl#[f16]MAX. |
| 334 | } |
| 335 | |
| 336 | #[inline] |
| 337 | fn is_nanrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]is_nan().(self) -> bool { |
| 338 | self.is_nanrust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_nan().() |
| 339 | } |
| 340 | |
| 341 | #[inline] |
| 342 | fn is_infiniterust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]is_infinite().(self) -> bool { |
| 343 | self.is_infiniterust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_infinite().() |
| 344 | } |
| 345 | |
| 346 | #[inline] |
| 347 | fn is_finiterust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]is_finite().(self) -> bool { |
| 348 | self.is_finiterust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_finite().() |
| 349 | } |
| 350 | |
| 351 | #[inline] |
| 352 | fn is_normalrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]is_normal().(self) -> bool { |
| 353 | self.is_normalrust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_normal().() |
| 354 | } |
| 355 | |
| 356 | #[inline] |
| 357 | fn classifyrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]classify().(self) -> FpCategoryrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/FpCategory# { |
| 358 | self.classifyrust-analyzer cargo half 2.7.1 binary16/impl#[f16]classify().() |
| 359 | } |
| 360 | |
| 361 | #[inline] |
| 362 | fn floorrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]floor().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 363 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().floorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]floor().()) |
| 364 | } |
| 365 | |
| 366 | #[inline] |
| 367 | fn ceilrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]ceil().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 368 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().ceilrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]ceil().()) |
| 369 | } |
| 370 | |
| 371 | #[inline] |
| 372 | fn roundrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]round().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 373 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().roundrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]round().()) |
| 374 | } |
| 375 | |
| 376 | #[inline] |
| 377 | fn truncrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]trunc().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 378 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().truncrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]trunc().()) |
| 379 | } |
| 380 | |
| 381 | #[inline] |
| 382 | fn fractrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]fract().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 383 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().fractrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]fract().()) |
| 384 | } |
| 385 | |
| 386 | #[inline] |
| 387 | fn absrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]abs().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 388 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().absrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]abs().()) |
| 389 | } |
| 390 | |
| 391 | #[inline] |
| 392 | fn signumrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]signum().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 393 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().signumrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]signum().()) |
| 394 | } |
| 395 | |
| 396 | #[inline] |
| 397 | fn is_sign_positiverust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]is_sign_positive().(self) -> bool { |
| 398 | self.is_sign_positiverust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_sign_positive().() |
| 399 | } |
| 400 | |
| 401 | #[inline] |
| 402 | fn is_sign_negativerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]is_sign_negative().(self) -> bool { |
| 403 | self.is_sign_negativerust-analyzer cargo half 2.7.1 binary16/impl#[f16]is_sign_negative().() |
| 404 | } |
| 405 | |
| 406 | #[inline] |
| 407 | fn mul_addrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]mul_add().(self, a: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float], b: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 408 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().mul_addrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]mul_add().(a.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().(), b.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().())) |
| 409 | } |
| 410 | |
| 411 | #[inline] |
| 412 | fn reciprust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]recip().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 413 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().reciprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]recip().()) |
| 414 | } |
| 415 | |
| 416 | #[inline] |
| 417 | fn powirust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]powi().(self, n: i32) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 418 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().powirust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]powi().(n)) |
| 419 | } |
| 420 | |
| 421 | #[inline] |
| 422 | fn powfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]powf().(self, n: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 423 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().powfrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]powf().(n.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().())) |
| 424 | } |
| 425 | |
| 426 | #[inline] |
| 427 | fn sqrtrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]sqrt().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 428 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().sqrtrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]sqrt().()) |
| 429 | } |
| 430 | |
| 431 | #[inline] |
| 432 | fn exprust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]exp().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 433 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().exprust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]exp().()) |
| 434 | } |
| 435 | |
| 436 | #[inline] |
| 437 | fn exp2rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]exp2().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 438 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().exp2rust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]exp2().()) |
| 439 | } |
| 440 | |
| 441 | #[inline] |
| 442 | fn lnrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]ln().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 443 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().lnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]ln().()) |
| 444 | } |
| 445 | |
| 446 | #[inline] |
| 447 | fn logrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]log().(self, base: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 448 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().logrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]log().(base.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().())) |
| 449 | } |
| 450 | |
| 451 | #[inline] |
| 452 | fn log2rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]log2().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 453 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().log2rust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]log2().()) |
| 454 | } |
| 455 | |
| 456 | #[inline] |
| 457 | fn log10rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]log10().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 458 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().log10rust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]log10().()) |
| 459 | } |
| 460 | |
| 461 | #[inline] |
| 462 | fn to_degreesrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]to_degrees().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 463 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().to_degreesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]to_degrees().()) |
| 464 | } |
| 465 | |
| 466 | #[inline] |
| 467 | fn to_radiansrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]to_radians().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 468 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().to_radiansrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]to_radians().()) |
| 469 | } |
| 470 | |
| 471 | #[inline] |
| 472 | fn maxrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]max().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 473 | self.maxrust-analyzer cargo half 2.7.1 binary16/impl#[f16]max().(other) |
| 474 | } |
| 475 | |
| 476 | #[inline] |
| 477 | fn minrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]min().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 478 | self.minrust-analyzer cargo half 2.7.1 binary16/impl#[f16]min().(other) |
| 479 | } |
| 480 | |
| 481 | #[inline] |
| 482 | fn abs_subrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]abs_sub().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 483 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().((self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub().other.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().()).maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]max().(0.0)) |
| 484 | } |
| 485 | |
| 486 | #[inline] |
| 487 | fn cbrtrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]cbrt().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 488 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().cbrtrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]cbrt().()) |
| 489 | } |
| 490 | |
| 491 | #[inline] |
| 492 | fn hypotrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]hypot().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 493 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().hypotrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]hypot().(other.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().())) |
| 494 | } |
| 495 | |
| 496 | #[inline] |
| 497 | fn sinrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]sin().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 498 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().sinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]sin().()) |
| 499 | } |
| 500 | |
| 501 | #[inline] |
| 502 | fn cosrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]cos().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 503 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().cosrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]cos().()) |
| 504 | } |
| 505 | |
| 506 | #[inline] |
| 507 | fn tanrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]tan().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 508 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().tanrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]tan().()) |
| 509 | } |
| 510 | |
| 511 | #[inline] |
| 512 | fn asinrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]asin().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 513 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().asinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]asin().()) |
| 514 | } |
| 515 | |
| 516 | #[inline] |
| 517 | fn acosrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]acos().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 518 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().acosrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]acos().()) |
| 519 | } |
| 520 | |
| 521 | #[inline] |
| 522 | fn atanrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]atan().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 523 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().atanrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]atan().()) |
| 524 | } |
| 525 | |
| 526 | #[inline] |
| 527 | fn atan2rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]atan2().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 528 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().atan2rust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]atan2().(other.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().())) |
| 529 | } |
| 530 | |
| 531 | #[inline] |
| 532 | fn sin_cosrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]sin_cos().(self) -> (Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float], Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]) { |
| 533 | let (sin, cos) = self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().sin_cosrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]sin_cos().(); |
| 534 | (Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(sin), Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(cos)) |
| 535 | } |
| 536 | |
| 537 | #[inline] |
| 538 | fn exp_m1rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]exp_m1().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 539 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().exp_m1rust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]exp_m1().()) |
| 540 | } |
| 541 | |
| 542 | #[inline] |
| 543 | fn ln_1prust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]ln_1p().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 544 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().ln_1prust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]ln_1p().()) |
| 545 | } |
| 546 | |
| 547 | #[inline] |
| 548 | fn sinhrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]sinh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 549 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().sinhrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]sinh().()) |
| 550 | } |
| 551 | |
| 552 | #[inline] |
| 553 | fn coshrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]cosh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 554 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().coshrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]cosh().()) |
| 555 | } |
| 556 | |
| 557 | #[inline] |
| 558 | fn tanhrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]tanh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 559 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().tanhrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]tanh().()) |
| 560 | } |
| 561 | |
| 562 | #[inline] |
| 563 | fn asinhrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]asinh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 564 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().asinhrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]asinh().()) |
| 565 | } |
| 566 | |
| 567 | #[inline] |
| 568 | fn acoshrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]acosh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 569 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().acoshrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]acosh().()) |
| 570 | } |
| 571 | |
| 572 | #[inline] |
| 573 | fn atanhrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]atanh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float] { |
| 574 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]::from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().().atanhrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]atanh().()) |
| 575 | } |
| 576 | |
| 577 | #[inline] |
| 578 | fn integer_decoderust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Float]integer_decode().(self) -> (u64, i16, i8) { |
| 579 | num_traitsrust-analyzer cargo num-traits 0.2.16 crate/::floatrust-analyzer cargo num-traits 0.2.16 float/::Floatrust-analyzer cargo num-traits 0.2.16 float/Float#::integer_decoderust-analyzer cargo num-traits 0.2.16 float/impl#[f32][Float]integer_decode().(self.to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().()) |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | impl FloatConstrust-analyzer cargo num-traits 0.2.16 float/FloatConst# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 584 | #[inline] |
| 585 | fn Erust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]E().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 586 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::Erust-analyzer cargo half 2.7.1 binary16/impl#[f16]E. |
| 587 | } |
| 588 | |
| 589 | #[inline] |
| 590 | fn FRAC_1_PIrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]FRAC_1_PI().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 591 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::FRAC_1_PIrust-analyzer cargo half 2.7.1 binary16/impl#[f16]FRAC_1_PI. |
| 592 | } |
| 593 | |
| 594 | #[inline] |
| 595 | fn FRAC_1_SQRT_2rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]FRAC_1_SQRT_2().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 596 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::FRAC_1_SQRT_2rust-analyzer cargo half 2.7.1 binary16/impl#[f16]FRAC_1_SQRT_2. |
| 597 | } |
| 598 | |
| 599 | #[inline] |
| 600 | fn FRAC_2_PIrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]FRAC_2_PI().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 601 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::FRAC_2_PIrust-analyzer cargo half 2.7.1 binary16/impl#[f16]FRAC_2_PI. |
| 602 | } |
| 603 | |
| 604 | #[inline] |
| 605 | fn FRAC_2_SQRT_PIrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]FRAC_2_SQRT_PI().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 606 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::FRAC_2_SQRT_PIrust-analyzer cargo half 2.7.1 binary16/impl#[f16]FRAC_2_SQRT_PI. |
| 607 | } |
| 608 | |
| 609 | #[inline] |
| 610 | fn FRAC_PI_2rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]FRAC_PI_2().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 611 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::FRAC_PI_2rust-analyzer cargo half 2.7.1 binary16/impl#[f16]FRAC_PI_2. |
| 612 | } |
| 613 | |
| 614 | #[inline] |
| 615 | fn FRAC_PI_3rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]FRAC_PI_3().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 616 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::FRAC_PI_3rust-analyzer cargo half 2.7.1 binary16/impl#[f16]FRAC_PI_3. |
| 617 | } |
| 618 | |
| 619 | #[inline] |
| 620 | fn FRAC_PI_4rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]FRAC_PI_4().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 621 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::FRAC_PI_4rust-analyzer cargo half 2.7.1 binary16/impl#[f16]FRAC_PI_4. |
| 622 | } |
| 623 | |
| 624 | #[inline] |
| 625 | fn FRAC_PI_6rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]FRAC_PI_6().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 626 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::FRAC_PI_6rust-analyzer cargo half 2.7.1 binary16/impl#[f16]FRAC_PI_6. |
| 627 | } |
| 628 | |
| 629 | #[inline] |
| 630 | fn FRAC_PI_8rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]FRAC_PI_8().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 631 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::FRAC_PI_8rust-analyzer cargo half 2.7.1 binary16/impl#[f16]FRAC_PI_8. |
| 632 | } |
| 633 | |
| 634 | #[inline] |
| 635 | fn LN_10rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]LN_10().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 636 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::LN_10rust-analyzer cargo half 2.7.1 binary16/impl#[f16]LN_10. |
| 637 | } |
| 638 | |
| 639 | #[inline] |
| 640 | fn LN_2rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]LN_2().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 641 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::LN_2rust-analyzer cargo half 2.7.1 binary16/impl#[f16]LN_2. |
| 642 | } |
| 643 | |
| 644 | #[inline] |
| 645 | fn LOG10_Erust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]LOG10_E().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 646 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::LOG10_Erust-analyzer cargo half 2.7.1 binary16/impl#[f16]LOG10_E. |
| 647 | } |
| 648 | |
| 649 | #[inline] |
| 650 | fn LOG2_Erust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]LOG2_E().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 651 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::LOG2_Erust-analyzer cargo half 2.7.1 binary16/impl#[f16]LOG2_E. |
| 652 | } |
| 653 | |
| 654 | #[inline] |
| 655 | fn PIrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]PI().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 656 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::PIrust-analyzer cargo half 2.7.1 binary16/impl#[f16]PI. |
| 657 | } |
| 658 | |
| 659 | fn SQRT_2rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]SQRT_2().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] { |
| 660 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::SQRT_2rust-analyzer cargo half 2.7.1 binary16/impl#[f16]SQRT_2. |
| 661 | } |
| 662 | |
| 663 | #[inline] |
| 664 | fn LOG10_2rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]LOG10_2().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] |
| 665 | where |
| 666 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized# + Divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst], Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#Output# = Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]>, |
| 667 | { |
| 668 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::LOG10_2rust-analyzer cargo half 2.7.1 binary16/impl#[f16]LOG10_2. |
| 669 | } |
| 670 | |
| 671 | #[inline] |
| 672 | fn LOG2_10rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]LOG2_10().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst] |
| 673 | where |
| 674 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized# + Divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst], Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#Output# = Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]>, |
| 675 | { |
| 676 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FloatConst]::LOG2_10rust-analyzer cargo half 2.7.1 binary16/impl#[f16]LOG2_10. |
| 677 | } |
| 678 | } |
| 679 | |
| 680 | impl Boundedrust-analyzer cargo num-traits 0.2.16 bounds/Bounded# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 681 | #[inline] |
| 682 | fn min_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Bounded]min_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Bounded] { |
| 683 | f16rust-analyzer cargo half 2.7.1 binary16/f16#::MINrust-analyzer cargo half 2.7.1 binary16/impl#[f16]MIN. |
| 684 | } |
| 685 | |
| 686 | #[inline] |
| 687 | fn max_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Bounded]max_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][Bounded] { |
| 688 | f16rust-analyzer cargo half 2.7.1 binary16/f16#::MAXrust-analyzer cargo half 2.7.1 binary16/impl#[f16]MAX. |
| 689 | } |
| 690 | } |
| 691 | |
| 692 | macro_rules! impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16! { |
| 693 | ($ty:ty, $meth:ident) => { |
| 694 | impl AsPrimitive<$ty> for f16 { |
| 695 | #[inline] |
| 696 | fn as_(self) -> $ty { |
| 697 | self.$meth().as_() |
| 698 | } |
| 699 | } |
| 700 | }; |
| 701 | } |
| 702 | |
| 703 | impl AsPrimitiverust-analyzer cargo num-traits 0.2.16 cast/AsPrimitive#<f16rust-analyzer cargo half 2.7.1 binary16/f16#> for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 704 | #[inline] |
| 705 | fn as_rust-analyzer cargo half 2.7.1 num_traits/impl#[f16][`AsPrimitive<Self>`]as_().(self) -> f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 706 | self |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(i64, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 711 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(u64, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 712 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(i8, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 713 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(u8, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 714 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(i16, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 715 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(u16, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 716 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(i32, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 717 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(u32, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 718 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(isize, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 719 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(usize, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 720 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(f32, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 721 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(f64, to_f64rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f64().); |
| 722 | impl_as_primitive_to_f16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_f16!!(bf16rust-analyzer cargo half 2.7.1 bfloat/bf16#, to_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_f32().); |
| 723 | |
| 724 | macro_rules! impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from! { |
| 725 | ($ty:ty, $meth:ident) => { |
| 726 | impl AsPrimitive<f16> for $ty { |
| 727 | #[inline] |
| 728 | fn as_(self) -> f16 { |
| 729 | f16::$meth(self.as_()) |
| 730 | } |
| 731 | } |
| 732 | }; |
| 733 | } |
| 734 | |
| 735 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(i64, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 736 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(u64, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 737 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(i8, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 738 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(u8, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 739 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(i16, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 740 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(u16, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 741 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(i32, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 742 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(u32, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 743 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(isize, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 744 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(usize, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 745 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(f32, from_f32rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f32().); |
| 746 | impl_as_primitive_f16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_f16_from!!(f64, from_f64rust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_f64().); |
| 747 | |
| 748 | impl ToBytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/ToBytes# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 749 | type Bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToBytes]Bytes# = [u8; 2]; |
| 750 | |
| 751 | fn to_be_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToBytes]to_be_bytes().(&self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/ToBytes#Bytes# { |
| 752 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToBytes]::to_be_bytesrust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_be_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self) |
| 753 | } |
| 754 | |
| 755 | fn to_le_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToBytes]to_le_bytes().(&self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/ToBytes#Bytes# { |
| 756 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToBytes]::to_le_bytesrust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_le_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self) |
| 757 | } |
| 758 | |
| 759 | fn to_ne_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToBytes]to_ne_bytes().(&self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/ToBytes#Bytes# { |
| 760 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][ToBytes]::to_ne_bytesrust-analyzer cargo half 2.7.1 binary16/impl#[f16]to_ne_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self) |
| 761 | } |
| 762 | } |
| 763 | |
| 764 | impl FromBytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/FromBytes# for f16rust-analyzer cargo half 2.7.1 binary16/f16# { |
| 765 | type Bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes]Bytes# = [u8; 2]; |
| 766 | |
| 767 | fn from_be_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes]from_be_bytes().(bytes: &Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/FromBytes#Bytes#) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes] { |
| 768 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes]::from_be_bytesrust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_be_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().bytes) |
| 769 | } |
| 770 | |
| 771 | fn from_le_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes]from_le_bytes().(bytes: &Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/FromBytes#Bytes#) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes] { |
| 772 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes]::from_le_bytesrust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_le_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().bytes) |
| 773 | } |
| 774 | |
| 775 | fn from_ne_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes]from_ne_bytes().(bytes: &Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/FromBytes#Bytes#) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes] { |
| 776 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[f16][FromBytes]::from_ne_bytesrust-analyzer cargo half 2.7.1 binary16/impl#[f16]from_ne_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().bytes) |
| 777 | } |
| 778 | } |
| 779 | |
| 780 | impl ToPrimitiverust-analyzer cargo num-traits 0.2.16 cast/ToPrimitive# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 781 | #[inline] |
| 782 | fn to_i64rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]to_i64().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i64> { |
| 783 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_i64rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_i64().() |
| 784 | } |
| 785 | #[inline] |
| 786 | fn to_u64rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]to_u64().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u64> { |
| 787 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_u64rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_u64().() |
| 788 | } |
| 789 | #[inline] |
| 790 | fn to_i8rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]to_i8().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i8> { |
| 791 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_i8rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_i8().() |
| 792 | } |
| 793 | #[inline] |
| 794 | fn to_u8rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]to_u8().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u8> { |
| 795 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_u8rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_u8().() |
| 796 | } |
| 797 | #[inline] |
| 798 | fn to_i16rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]to_i16().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i16> { |
| 799 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_i16rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_i16().() |
| 800 | } |
| 801 | #[inline] |
| 802 | fn to_u16rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]to_u16().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u16> { |
| 803 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_u16rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_u16().() |
| 804 | } |
| 805 | #[inline] |
| 806 | fn to_i32rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]to_i32().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i32> { |
| 807 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_i32rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_i32().() |
| 808 | } |
| 809 | #[inline] |
| 810 | fn to_u32rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]to_u32().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u32> { |
| 811 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).to_u32rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_u32().() |
| 812 | } |
| 813 | #[inline] |
| 814 | fn to_f32rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]to_f32().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<f32> { |
| 815 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]::to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self)) |
| 816 | } |
| 817 | #[inline] |
| 818 | fn to_f64rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]to_f64().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<f64> { |
| 819 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToPrimitive]::to_f64rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f64().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self)) |
| 820 | } |
| 821 | } |
| 822 | |
| 823 | impl FromPrimitiverust-analyzer cargo num-traits 0.2.16 cast/FromPrimitive# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 824 | #[inline] |
| 825 | fn from_i64rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]from_i64().(n: i64) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]> { |
| 826 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[i64][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().) |
| 827 | } |
| 828 | #[inline] |
| 829 | fn from_u64rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]from_u64().(n: u64) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]> { |
| 830 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[u64][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().) |
| 831 | } |
| 832 | #[inline] |
| 833 | fn from_i8rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]from_i8().(n: i8) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]> { |
| 834 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[i8][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().) |
| 835 | } |
| 836 | #[inline] |
| 837 | fn from_u8rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]from_u8().(n: u8) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]> { |
| 838 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[u8][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().) |
| 839 | } |
| 840 | #[inline] |
| 841 | fn from_i16rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]from_i16().(n: i16) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]> { |
| 842 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[i16][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().) |
| 843 | } |
| 844 | #[inline] |
| 845 | fn from_u16rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]from_u16().(n: u16) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]> { |
| 846 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[u16][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().) |
| 847 | } |
| 848 | #[inline] |
| 849 | fn from_i32rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]from_i32().(n: i32) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]> { |
| 850 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[i32][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().) |
| 851 | } |
| 852 | #[inline] |
| 853 | fn from_u32rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]from_u32().(n: u32) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]> { |
| 854 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[u32][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().) |
| 855 | } |
| 856 | #[inline] |
| 857 | fn from_f32rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]from_f32().(n: f32) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]> { |
| 858 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/impl#[f32][ToPrimitive]to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().) |
| 859 | } |
| 860 | #[inline] |
| 861 | fn from_f64rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]from_f64().(n: f64) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]> { |
| 862 | n.to_f64rust-analyzer cargo num-traits 0.2.16 cast/impl#[f64][ToPrimitive]to_f64().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromPrimitive]::from_f64rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f64().) |
| 863 | } |
| 864 | } |
| 865 | |
| 866 | impl Numrust-analyzer cargo num-traits 0.2.16 Num# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 867 | type FromStrRadixErrrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Num]FromStrRadixErr# = <f32 as Numrust-analyzer cargo num-traits 0.2.16 Num#>::FromStrRadixErrrust-analyzer cargo num-traits 0.2.16 Num#FromStrRadixErr#; |
| 868 | |
| 869 | #[inline] |
| 870 | fn from_str_radixrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Num]from_str_radix().(str: &str, radix: u32) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Num], Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Num]::FromStrRadixErrrust-analyzer cargo num-traits 0.2.16 Num#FromStrRadixErr#> { |
| 871 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Num]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(f32::from_str_radixrust-analyzer cargo num-traits 0.2.16 impl#[f32][Num]from_str_radix().(str, radix)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().)) |
| 872 | } |
| 873 | } |
| 874 | |
| 875 | impl Onerust-analyzer cargo num-traits 0.2.16 identities/One# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 876 | #[inline] |
| 877 | fn onerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][One]one().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][One] { |
| 878 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][One]::ONErust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]ONE. |
| 879 | } |
| 880 | } |
| 881 | |
| 882 | impl Zerorust-analyzer cargo num-traits 0.2.16 identities/Zero# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 883 | #[inline] |
| 884 | fn zerorust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Zero]zero().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Zero] { |
| 885 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Zero]::ZEROrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]ZERO. |
| 886 | } |
| 887 | |
| 888 | #[inline] |
| 889 | fn is_zerorust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Zero]is_zero().(&self) -> bool { |
| 890 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16][`PartialEq<Self>`]eq().==rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16][`PartialEq<Self>`]eq(). rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16][`PartialEq<Self>`]eq().Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Zero]::ZEROrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]ZERO. |
| 891 | } |
| 892 | } |
| 893 | |
| 894 | impl NumCastrust-analyzer cargo num-traits 0.2.16 cast/NumCast# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 895 | #[inline] |
| 896 | fn fromrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][NumCast]from().<T: ToPrimitiverust-analyzer cargo num-traits 0.2.16 cast/ToPrimitive#>(n: T) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][NumCast]> { |
| 897 | n.to_f32rust-analyzer cargo num-traits 0.2.16 cast/ToPrimitive#to_f32().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][NumCast]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().) |
| 898 | } |
| 899 | } |
| 900 | |
| 901 | impl num_traitsrust-analyzer cargo num-traits 0.2.16 crate/::floatrust-analyzer cargo num-traits 0.2.16 float/::FloatCorerust-analyzer cargo num-traits 0.2.16 float/FloatCore# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 902 | #[inline] |
| 903 | fn infinityrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]infinity().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 904 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::INFINITYrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]INFINITY. |
| 905 | } |
| 906 | |
| 907 | #[inline] |
| 908 | fn neg_infinityrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]neg_infinity().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 909 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::NEG_INFINITYrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]NEG_INFINITY. |
| 910 | } |
| 911 | |
| 912 | #[inline] |
| 913 | fn nanrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]nan().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 914 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::NANrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]NAN. |
| 915 | } |
| 916 | |
| 917 | #[inline] |
| 918 | fn neg_zerorust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]neg_zero().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 919 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::NEG_ZEROrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]NEG_ZERO. |
| 920 | } |
| 921 | |
| 922 | #[inline] |
| 923 | fn min_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]min_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 924 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::MINrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]MIN. |
| 925 | } |
| 926 | |
| 927 | #[inline] |
| 928 | fn min_positive_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]min_positive_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 929 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::MIN_POSITIVErust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]MIN_POSITIVE. |
| 930 | } |
| 931 | |
| 932 | #[inline] |
| 933 | fn epsilonrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]epsilon().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 934 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::EPSILONrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]EPSILON. |
| 935 | } |
| 936 | |
| 937 | #[inline] |
| 938 | fn max_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]max_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 939 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::MAXrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]MAX. |
| 940 | } |
| 941 | |
| 942 | #[inline] |
| 943 | fn is_nanrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]is_nan().(self) -> bool { |
| 944 | self.is_nanrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_nan().() |
| 945 | } |
| 946 | |
| 947 | #[inline] |
| 948 | fn is_infiniterust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]is_infinite().(self) -> bool { |
| 949 | self.is_infiniterust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_infinite().() |
| 950 | } |
| 951 | |
| 952 | #[inline] |
| 953 | fn is_finiterust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]is_finite().(self) -> bool { |
| 954 | self.is_finiterust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_finite().() |
| 955 | } |
| 956 | |
| 957 | #[inline] |
| 958 | fn is_normalrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]is_normal().(self) -> bool { |
| 959 | self.is_normalrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_normal().() |
| 960 | } |
| 961 | |
| 962 | #[inline] |
| 963 | fn classifyrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]classify().(self) -> FpCategoryrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/FpCategory# { |
| 964 | self.classifyrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]classify().() |
| 965 | } |
| 966 | |
| 967 | #[inline] |
| 968 | fn floorrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]floor().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 969 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().floorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]floor().()) |
| 970 | } |
| 971 | |
| 972 | #[inline] |
| 973 | fn ceilrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]ceil().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 974 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().ceilrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]ceil().()) |
| 975 | } |
| 976 | |
| 977 | #[inline] |
| 978 | fn roundrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]round().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 979 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().roundrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]round().()) |
| 980 | } |
| 981 | |
| 982 | #[inline] |
| 983 | fn truncrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]trunc().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 984 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().truncrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]trunc().()) |
| 985 | } |
| 986 | |
| 987 | #[inline] |
| 988 | fn fractrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]fract().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 989 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().fractrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]fract().()) |
| 990 | } |
| 991 | |
| 992 | #[inline] |
| 993 | fn absrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]abs().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 994 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::from_bitsrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_bits().(self.to_bitsrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_bits().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u16][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u16][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u16][`BitAnd<Self>`]bitand().0x7FFF) |
| 995 | } |
| 996 | |
| 997 | #[inline] |
| 998 | fn signumrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]signum().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 999 | self.signumrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]signum().() |
| 1000 | } |
| 1001 | |
| 1002 | #[inline] |
| 1003 | fn is_sign_positiverust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]is_sign_positive().(self) -> bool { |
| 1004 | self.is_sign_positiverust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_sign_positive().() |
| 1005 | } |
| 1006 | |
| 1007 | #[inline] |
| 1008 | fn is_sign_negativerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]is_sign_negative().(self) -> bool { |
| 1009 | self.is_sign_negativerust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_sign_negative().() |
| 1010 | } |
| 1011 | |
| 1012 | fn minrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]min().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 1013 | match self.partial_cmprust-analyzer cargo half 2.7.1 bfloat/impl#[bf16][`PartialOrd<Self>`]partial_cmp().(&other) { |
| 1014 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# => { |
| 1015 | if self.is_nanrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_nan().() { |
| 1016 | other |
| 1017 | } else { |
| 1018 | self |
| 1019 | } |
| 1020 | } |
| 1021 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Greaterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Greater#) | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Equalrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Equal#) => other, |
| 1022 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Lessrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Less#) => self, |
| 1023 | } |
| 1024 | } |
| 1025 | |
| 1026 | fn maxrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]max().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 1027 | match self.partial_cmprust-analyzer cargo half 2.7.1 bfloat/impl#[bf16][`PartialOrd<Self>`]partial_cmp().(&other) { |
| 1028 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# => { |
| 1029 | if self.is_nanrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_nan().() { |
| 1030 | other |
| 1031 | } else { |
| 1032 | self |
| 1033 | } |
| 1034 | } |
| 1035 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Greaterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Greater#) | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Equalrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Equal#) => self, |
| 1036 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Lessrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Less#) => other, |
| 1037 | } |
| 1038 | } |
| 1039 | |
| 1040 | #[inline] |
| 1041 | fn reciprust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]recip().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 1042 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().reciprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]recip().()) |
| 1043 | } |
| 1044 | |
| 1045 | #[inline] |
| 1046 | fn powirust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]powi().(self, exp: i32) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 1047 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().powirust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]powi().(exp)) |
| 1048 | } |
| 1049 | |
| 1050 | #[inline] |
| 1051 | fn to_degreesrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]to_degrees().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 1052 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().to_degreesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]to_degrees().()) |
| 1053 | } |
| 1054 | |
| 1055 | #[inline] |
| 1056 | fn to_radiansrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]to_radians().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore] { |
| 1057 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().to_radiansrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]to_radians().()) |
| 1058 | } |
| 1059 | |
| 1060 | #[inline] |
| 1061 | fn integer_decoderust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatCore]integer_decode().(self) -> (u64, i16, i8) { |
| 1062 | num_traitsrust-analyzer cargo num-traits 0.2.16 crate/::floatrust-analyzer cargo num-traits 0.2.16 float/::FloatCorerust-analyzer cargo num-traits 0.2.16 float/FloatCore#::integer_decoderust-analyzer cargo num-traits 0.2.16 float/impl#[f32][FloatCore]integer_decode().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().()) |
| 1063 | } |
| 1064 | } |
| 1065 | |
| 1066 | impl num_traitsrust-analyzer cargo num-traits 0.2.16 crate/::floatrust-analyzer cargo num-traits 0.2.16 float/::Floatrust-analyzer cargo num-traits 0.2.16 float/Float# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 1067 | #[inline] |
| 1068 | fn nanrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]nan().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1069 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::NANrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]NAN. |
| 1070 | } |
| 1071 | |
| 1072 | #[inline] |
| 1073 | fn infinityrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]infinity().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1074 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::INFINITYrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]INFINITY. |
| 1075 | } |
| 1076 | |
| 1077 | #[inline] |
| 1078 | fn neg_infinityrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]neg_infinity().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1079 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::NEG_INFINITYrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]NEG_INFINITY. |
| 1080 | } |
| 1081 | |
| 1082 | #[inline] |
| 1083 | fn neg_zerorust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]neg_zero().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1084 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::NEG_ZEROrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]NEG_ZERO. |
| 1085 | } |
| 1086 | |
| 1087 | #[inline] |
| 1088 | fn min_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]min_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1089 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::MINrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]MIN. |
| 1090 | } |
| 1091 | |
| 1092 | #[inline] |
| 1093 | fn min_positive_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]min_positive_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1094 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::MIN_POSITIVErust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]MIN_POSITIVE. |
| 1095 | } |
| 1096 | |
| 1097 | #[inline] |
| 1098 | fn epsilonrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]epsilon().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1099 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::EPSILONrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]EPSILON. |
| 1100 | } |
| 1101 | |
| 1102 | #[inline] |
| 1103 | fn max_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]max_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1104 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::MAXrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]MAX. |
| 1105 | } |
| 1106 | |
| 1107 | #[inline] |
| 1108 | fn is_nanrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]is_nan().(self) -> bool { |
| 1109 | self.is_nanrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_nan().() |
| 1110 | } |
| 1111 | |
| 1112 | #[inline] |
| 1113 | fn is_infiniterust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]is_infinite().(self) -> bool { |
| 1114 | self.is_infiniterust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_infinite().() |
| 1115 | } |
| 1116 | |
| 1117 | #[inline] |
| 1118 | fn is_finiterust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]is_finite().(self) -> bool { |
| 1119 | self.is_finiterust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_finite().() |
| 1120 | } |
| 1121 | |
| 1122 | #[inline] |
| 1123 | fn is_normalrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]is_normal().(self) -> bool { |
| 1124 | self.is_normalrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_normal().() |
| 1125 | } |
| 1126 | |
| 1127 | #[inline] |
| 1128 | fn classifyrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]classify().(self) -> FpCategoryrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/FpCategory# { |
| 1129 | self.classifyrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]classify().() |
| 1130 | } |
| 1131 | |
| 1132 | #[inline] |
| 1133 | fn floorrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]floor().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1134 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().floorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]floor().()) |
| 1135 | } |
| 1136 | |
| 1137 | #[inline] |
| 1138 | fn ceilrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]ceil().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1139 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().ceilrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]ceil().()) |
| 1140 | } |
| 1141 | |
| 1142 | #[inline] |
| 1143 | fn roundrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]round().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1144 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().roundrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]round().()) |
| 1145 | } |
| 1146 | |
| 1147 | #[inline] |
| 1148 | fn truncrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]trunc().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1149 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().truncrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]trunc().()) |
| 1150 | } |
| 1151 | |
| 1152 | #[inline] |
| 1153 | fn fractrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]fract().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1154 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().fractrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]fract().()) |
| 1155 | } |
| 1156 | |
| 1157 | #[inline] |
| 1158 | fn absrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]abs().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1159 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().absrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]abs().()) |
| 1160 | } |
| 1161 | |
| 1162 | #[inline] |
| 1163 | fn signumrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]signum().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1164 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().signumrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]signum().()) |
| 1165 | } |
| 1166 | |
| 1167 | #[inline] |
| 1168 | fn is_sign_positiverust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]is_sign_positive().(self) -> bool { |
| 1169 | self.is_sign_positiverust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_sign_positive().() |
| 1170 | } |
| 1171 | |
| 1172 | #[inline] |
| 1173 | fn is_sign_negativerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]is_sign_negative().(self) -> bool { |
| 1174 | self.is_sign_negativerust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]is_sign_negative().() |
| 1175 | } |
| 1176 | |
| 1177 | #[inline] |
| 1178 | fn mul_addrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]mul_add().(self, a: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float], b: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1179 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().mul_addrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]mul_add().(a.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().(), b.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().())) |
| 1180 | } |
| 1181 | |
| 1182 | #[inline] |
| 1183 | fn reciprust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]recip().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1184 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().reciprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]recip().()) |
| 1185 | } |
| 1186 | |
| 1187 | #[inline] |
| 1188 | fn powirust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]powi().(self, n: i32) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1189 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().powirust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]powi().(n)) |
| 1190 | } |
| 1191 | |
| 1192 | #[inline] |
| 1193 | fn powfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]powf().(self, n: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1194 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().powfrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]powf().(n.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().())) |
| 1195 | } |
| 1196 | |
| 1197 | #[inline] |
| 1198 | fn sqrtrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]sqrt().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1199 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().sqrtrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]sqrt().()) |
| 1200 | } |
| 1201 | |
| 1202 | #[inline] |
| 1203 | fn exprust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]exp().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1204 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().exprust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]exp().()) |
| 1205 | } |
| 1206 | |
| 1207 | #[inline] |
| 1208 | fn exp2rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]exp2().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1209 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().exp2rust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]exp2().()) |
| 1210 | } |
| 1211 | |
| 1212 | #[inline] |
| 1213 | fn lnrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]ln().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1214 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().lnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]ln().()) |
| 1215 | } |
| 1216 | |
| 1217 | #[inline] |
| 1218 | fn logrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]log().(self, base: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1219 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().logrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]log().(base.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().())) |
| 1220 | } |
| 1221 | |
| 1222 | #[inline] |
| 1223 | fn log2rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]log2().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1224 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().log2rust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]log2().()) |
| 1225 | } |
| 1226 | |
| 1227 | #[inline] |
| 1228 | fn log10rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]log10().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1229 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().log10rust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]log10().()) |
| 1230 | } |
| 1231 | |
| 1232 | #[inline] |
| 1233 | fn to_degreesrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]to_degrees().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1234 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().to_degreesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]to_degrees().()) |
| 1235 | } |
| 1236 | |
| 1237 | #[inline] |
| 1238 | fn to_radiansrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]to_radians().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1239 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().to_radiansrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]to_radians().()) |
| 1240 | } |
| 1241 | |
| 1242 | #[inline] |
| 1243 | fn maxrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]max().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1244 | self.maxrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]max().(other) |
| 1245 | } |
| 1246 | |
| 1247 | #[inline] |
| 1248 | fn minrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]min().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1249 | self.minrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]min().(other) |
| 1250 | } |
| 1251 | |
| 1252 | #[inline] |
| 1253 | fn abs_subrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]abs_sub().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1254 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().((self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub().other.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().()).maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]max().(0.0)) |
| 1255 | } |
| 1256 | |
| 1257 | #[inline] |
| 1258 | fn cbrtrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]cbrt().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1259 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().cbrtrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]cbrt().()) |
| 1260 | } |
| 1261 | |
| 1262 | #[inline] |
| 1263 | fn hypotrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]hypot().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1264 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().hypotrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]hypot().(other.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().())) |
| 1265 | } |
| 1266 | |
| 1267 | #[inline] |
| 1268 | fn sinrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]sin().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1269 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().sinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]sin().()) |
| 1270 | } |
| 1271 | |
| 1272 | #[inline] |
| 1273 | fn cosrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]cos().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1274 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().cosrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]cos().()) |
| 1275 | } |
| 1276 | |
| 1277 | #[inline] |
| 1278 | fn tanrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]tan().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1279 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().tanrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]tan().()) |
| 1280 | } |
| 1281 | |
| 1282 | #[inline] |
| 1283 | fn asinrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]asin().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1284 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().asinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]asin().()) |
| 1285 | } |
| 1286 | |
| 1287 | #[inline] |
| 1288 | fn acosrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]acos().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1289 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().acosrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]acos().()) |
| 1290 | } |
| 1291 | |
| 1292 | #[inline] |
| 1293 | fn atanrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]atan().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1294 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().atanrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]atan().()) |
| 1295 | } |
| 1296 | |
| 1297 | #[inline] |
| 1298 | fn atan2rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]atan2().(self, other: Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1299 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().atan2rust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]atan2().(other.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().())) |
| 1300 | } |
| 1301 | |
| 1302 | #[inline] |
| 1303 | fn sin_cosrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]sin_cos().(self) -> (Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float], Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]) { |
| 1304 | let (sin, cos) = self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().sin_cosrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]sin_cos().(); |
| 1305 | (Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(sin), Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(cos)) |
| 1306 | } |
| 1307 | |
| 1308 | #[inline] |
| 1309 | fn exp_m1rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]exp_m1().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1310 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().exp_m1rust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]exp_m1().()) |
| 1311 | } |
| 1312 | |
| 1313 | #[inline] |
| 1314 | fn ln_1prust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]ln_1p().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1315 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().ln_1prust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]ln_1p().()) |
| 1316 | } |
| 1317 | |
| 1318 | #[inline] |
| 1319 | fn sinhrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]sinh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1320 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().sinhrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]sinh().()) |
| 1321 | } |
| 1322 | |
| 1323 | #[inline] |
| 1324 | fn coshrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]cosh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1325 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().coshrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]cosh().()) |
| 1326 | } |
| 1327 | |
| 1328 | #[inline] |
| 1329 | fn tanhrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]tanh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1330 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().tanhrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]tanh().()) |
| 1331 | } |
| 1332 | |
| 1333 | #[inline] |
| 1334 | fn asinhrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]asinh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1335 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().asinhrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]asinh().()) |
| 1336 | } |
| 1337 | |
| 1338 | #[inline] |
| 1339 | fn acoshrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]acosh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1340 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().acoshrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]acosh().()) |
| 1341 | } |
| 1342 | |
| 1343 | #[inline] |
| 1344 | fn atanhrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]atanh().(self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float] { |
| 1345 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]::from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().().atanhrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]atanh().()) |
| 1346 | } |
| 1347 | |
| 1348 | #[inline] |
| 1349 | fn integer_decoderust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Float]integer_decode().(self) -> (u64, i16, i8) { |
| 1350 | num_traitsrust-analyzer cargo num-traits 0.2.16 crate/::floatrust-analyzer cargo num-traits 0.2.16 float/::Floatrust-analyzer cargo num-traits 0.2.16 float/Float#::integer_decoderust-analyzer cargo num-traits 0.2.16 float/impl#[f32][Float]integer_decode().(self.to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().()) |
| 1351 | } |
| 1352 | } |
| 1353 | |
| 1354 | impl FloatConstrust-analyzer cargo num-traits 0.2.16 float/FloatConst# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 1355 | #[inline] |
| 1356 | fn Erust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]E().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1357 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::Erust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]E. |
| 1358 | } |
| 1359 | |
| 1360 | #[inline] |
| 1361 | fn FRAC_1_PIrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]FRAC_1_PI().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1362 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::FRAC_1_PIrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]FRAC_1_PI. |
| 1363 | } |
| 1364 | |
| 1365 | #[inline] |
| 1366 | fn FRAC_1_SQRT_2rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]FRAC_1_SQRT_2().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1367 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::FRAC_1_SQRT_2rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]FRAC_1_SQRT_2. |
| 1368 | } |
| 1369 | |
| 1370 | #[inline] |
| 1371 | fn FRAC_2_PIrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]FRAC_2_PI().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1372 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::FRAC_2_PIrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]FRAC_2_PI. |
| 1373 | } |
| 1374 | |
| 1375 | #[inline] |
| 1376 | fn FRAC_2_SQRT_PIrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]FRAC_2_SQRT_PI().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1377 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::FRAC_2_SQRT_PIrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]FRAC_2_SQRT_PI. |
| 1378 | } |
| 1379 | |
| 1380 | #[inline] |
| 1381 | fn FRAC_PI_2rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]FRAC_PI_2().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1382 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::FRAC_PI_2rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]FRAC_PI_2. |
| 1383 | } |
| 1384 | |
| 1385 | #[inline] |
| 1386 | fn FRAC_PI_3rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]FRAC_PI_3().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1387 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::FRAC_PI_3rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]FRAC_PI_3. |
| 1388 | } |
| 1389 | |
| 1390 | #[inline] |
| 1391 | fn FRAC_PI_4rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]FRAC_PI_4().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1392 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::FRAC_PI_4rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]FRAC_PI_4. |
| 1393 | } |
| 1394 | |
| 1395 | #[inline] |
| 1396 | fn FRAC_PI_6rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]FRAC_PI_6().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1397 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::FRAC_PI_6rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]FRAC_PI_6. |
| 1398 | } |
| 1399 | |
| 1400 | #[inline] |
| 1401 | fn FRAC_PI_8rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]FRAC_PI_8().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1402 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::FRAC_PI_8rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]FRAC_PI_8. |
| 1403 | } |
| 1404 | |
| 1405 | #[inline] |
| 1406 | fn LN_10rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]LN_10().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1407 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::LN_10rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]LN_10. |
| 1408 | } |
| 1409 | |
| 1410 | #[inline] |
| 1411 | fn LN_2rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]LN_2().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1412 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::LN_2rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]LN_2. |
| 1413 | } |
| 1414 | |
| 1415 | #[inline] |
| 1416 | fn LOG10_Erust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]LOG10_E().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1417 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::LOG10_Erust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]LOG10_E. |
| 1418 | } |
| 1419 | |
| 1420 | #[inline] |
| 1421 | fn LOG2_Erust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]LOG2_E().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1422 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::LOG2_Erust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]LOG2_E. |
| 1423 | } |
| 1424 | |
| 1425 | #[inline] |
| 1426 | fn PIrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]PI().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1427 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::PIrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]PI. |
| 1428 | } |
| 1429 | |
| 1430 | #[inline] |
| 1431 | fn SQRT_2rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]SQRT_2().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] { |
| 1432 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::SQRT_2rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]SQRT_2. |
| 1433 | } |
| 1434 | |
| 1435 | #[inline] |
| 1436 | fn LOG10_2rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]LOG10_2().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] |
| 1437 | where |
| 1438 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized# + Divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst], Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#Output# = Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]>, |
| 1439 | { |
| 1440 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::LOG10_2rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]LOG10_2. |
| 1441 | } |
| 1442 | |
| 1443 | #[inline] |
| 1444 | fn LOG2_10rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]LOG2_10().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst] |
| 1445 | where |
| 1446 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized# + Divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#<Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst], Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#Output# = Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]>, |
| 1447 | { |
| 1448 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FloatConst]::LOG2_10rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]LOG2_10. |
| 1449 | } |
| 1450 | } |
| 1451 | |
| 1452 | impl Boundedrust-analyzer cargo num-traits 0.2.16 bounds/Bounded# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 1453 | #[inline] |
| 1454 | fn min_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Bounded]min_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Bounded] { |
| 1455 | bf16rust-analyzer cargo half 2.7.1 bfloat/bf16#::MINrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]MIN. |
| 1456 | } |
| 1457 | |
| 1458 | #[inline] |
| 1459 | fn max_valuerust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Bounded]max_value().() -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][Bounded] { |
| 1460 | bf16rust-analyzer cargo half 2.7.1 bfloat/bf16#::MAXrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]MAX. |
| 1461 | } |
| 1462 | } |
| 1463 | |
| 1464 | impl AsPrimitiverust-analyzer cargo num-traits 0.2.16 cast/AsPrimitive#<bf16rust-analyzer cargo half 2.7.1 bfloat/bf16#> for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 1465 | #[inline] |
| 1466 | fn as_rust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][`AsPrimitive<Self>`]as_().(self) -> bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 1467 | self |
| 1468 | } |
| 1469 | } |
| 1470 | |
| 1471 | macro_rules! impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16! { |
| 1472 | ($ty:ty, $meth:ident) => { |
| 1473 | impl AsPrimitive<$ty> for bf16 { |
| 1474 | #[inline] |
| 1475 | fn as_(self) -> $ty { |
| 1476 | self.$meth().as_() |
| 1477 | } |
| 1478 | } |
| 1479 | }; |
| 1480 | } |
| 1481 | |
| 1482 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(i64, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1483 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(u64, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1484 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(i8, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1485 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(u8, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1486 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(i16, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1487 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(u16, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1488 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(i32, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1489 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(u32, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1490 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(isize, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1491 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(usize, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1492 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(f32, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1493 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(f64, to_f64rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f64().); |
| 1494 | impl_as_primitive_to_bf16rust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_to_bf16!!(f16rust-analyzer cargo half 2.7.1 binary16/f16#, to_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_f32().); |
| 1495 | |
| 1496 | macro_rules! impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from! { |
| 1497 | ($ty:ty, $meth:ident) => { |
| 1498 | impl AsPrimitive<bf16> for $ty { |
| 1499 | #[inline] |
| 1500 | fn as_(self) -> bf16 { |
| 1501 | bf16::$meth(self.as_()) |
| 1502 | } |
| 1503 | } |
| 1504 | }; |
| 1505 | } |
| 1506 | |
| 1507 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(i64, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1508 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(u64, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1509 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(i8, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1510 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(u8, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1511 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(i16, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1512 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(u16, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1513 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(i32, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1514 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(u32, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1515 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(isize, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1516 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(usize, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1517 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(f32, from_f32rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f32().); |
| 1518 | impl_as_primitive_bf16_fromrust-analyzer cargo half 2.7.1 num_traits/impl_as_primitive_bf16_from!!(f64, from_f64rust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_f64().); |
| 1519 | |
| 1520 | impl ToBytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/ToBytes# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 1521 | type Bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToBytes]Bytes# = [u8; 2]; |
| 1522 | |
| 1523 | fn to_be_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToBytes]to_be_bytes().(&self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/ToBytes#Bytes# { |
| 1524 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToBytes]::to_be_bytesrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_be_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self) |
| 1525 | } |
| 1526 | |
| 1527 | fn to_le_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToBytes]to_le_bytes().(&self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/ToBytes#Bytes# { |
| 1528 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToBytes]::to_le_bytesrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_le_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self) |
| 1529 | } |
| 1530 | |
| 1531 | fn to_ne_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToBytes]to_ne_bytes().(&self) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/ToBytes#Bytes# { |
| 1532 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][ToBytes]::to_ne_bytesrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]to_ne_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self) |
| 1533 | } |
| 1534 | } |
| 1535 | |
| 1536 | impl FromBytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/FromBytes# for bf16rust-analyzer cargo half 2.7.1 bfloat/bf16# { |
| 1537 | type Bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes]Bytes# = [u8; 2]; |
| 1538 | |
| 1539 | fn from_be_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes]from_be_bytes().(bytes: &Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/FromBytes#Bytes#) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes] { |
| 1540 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes]::from_be_bytesrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_be_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().bytes) |
| 1541 | } |
| 1542 | |
| 1543 | fn from_le_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes]from_le_bytes().(bytes: &Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/FromBytes#Bytes#) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes] { |
| 1544 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes]::from_le_bytesrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_le_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().bytes) |
| 1545 | } |
| 1546 | |
| 1547 | fn from_ne_bytesrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes]from_ne_bytes().(bytes: &Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes]::Bytesrust-analyzer cargo num-traits 0.2.16 ops/bytes/FromBytes#Bytes#) -> Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes] { |
| 1548 | Selfrust-analyzer cargo half 2.7.1 num_traits/impl#[bf16][FromBytes]::from_ne_bytesrust-analyzer cargo half 2.7.1 bfloat/impl#[bf16]from_ne_bytes().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().bytes) |
| 1549 | } |
| 1550 | } |
| 1551 | |
| 1552 | macro_rules! impl_signedrust-analyzer cargo half 2.7.1 num_traits/impl_signed! { |
| 1553 | ($ty:ty) => { |
| 1554 | impl ::num_traits::Signed for $ty { |
| 1555 | #[inline] |
| 1556 | fn abs(&self) -> Self { |
| 1557 | ::num_traits::float::Float::abs(*self) |
| 1558 | } |
| 1559 | |
| 1560 | #[inline] |
| 1561 | fn abs_sub(&self, other: &Self) -> Self { |
| 1562 | ::num_traits::float::Float::abs_sub(*self, *other) |
| 1563 | } |
| 1564 | |
| 1565 | #[inline] |
| 1566 | fn signum(&self) -> Self { |
| 1567 | ::num_traits::float::Float::signum(*self) |
| 1568 | } |
| 1569 | |
| 1570 | #[inline] |
| 1571 | fn is_positive(&self) -> bool { |
| 1572 | ::num_traits::float::Float::is_sign_positive(*self) |
| 1573 | } |
| 1574 | |
| 1575 | #[inline] |
| 1576 | fn is_negative(&self) -> bool { |
| 1577 | ::num_traits::float::Float::is_sign_negative(*self) |
| 1578 | } |
| 1579 | } |
| 1580 | }; |
| 1581 | } |
| 1582 | |
| 1583 | impl_signedrust-analyzer cargo half 2.7.1 num_traits/impl_signed!!(f16rust-analyzer cargo half 2.7.1 binary16/f16#); |
| 1584 | impl_signedrust-analyzer cargo half 2.7.1 num_traits/impl_signed!!(bf16rust-analyzer cargo half 2.7.1 bfloat/bf16#); |