Browse Source

AsI64 for i16, i8, u8

master
Jonathan Strong 6 years ago
parent
commit
37d8e7ad59
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/influx.rs

+ 3
- 0
src/influx.rs View File

@@ -56,6 +56,9 @@ impl AsI64 for usize { fn as_i64(x: Self) -> i64 { x as i64 } }
impl AsI64 for f64 { fn as_i64(x: Self) -> i64 { x as i64 } } impl AsI64 for f64 { fn as_i64(x: Self) -> i64 { x as i64 } }
impl AsI64 for f32 { fn as_i64(x: Self) -> i64 { x as i64 } } impl AsI64 for f32 { fn as_i64(x: Self) -> i64 { x as i64 } }
impl AsI64 for u16 { fn as_i64(x: Self) -> i64 { x as i64 } } impl AsI64 for u16 { fn as_i64(x: Self) -> i64 { x as i64 } }
impl AsI64 for i16 { fn as_i64(x: Self) -> i64 { x as i64 } }
impl AsI64 for u8 { fn as_i64(x: Self) -> i64 { x as i64 } }
impl AsI64 for i8 { fn as_i64(x: Self) -> i64 { x as i64 } }


/// Created this so I know what types can be passed through the /// Created this so I know what types can be passed through the
/// `measure!` macro, which used to convert with `as i64` and /// `measure!` macro, which used to convert with `as i64` and


Loading…
Cancel
Save