use crate::ImportantFunctions;
use super::*;
impl ImportantFunctions for Long {
type InputType = i64;
type ReturnType = i64;
fn new(data: Self::InputType) -> Self {
Self(data)
}
fn get_value(&self) -> Self::ReturnType {
self.0
}
}
impl ImportantFunctions for Boolean {
type InputType = bool;
type ReturnType = bool;
fn new(data: Self::InputType) -> Self {
Self(data)
}
fn get_value(&self) -> Self::ReturnType {
self.0
}
}
impl ImportantFunctions for Byte {
type InputType = i8;
type ReturnType = i8;
fn new(data: Self::InputType) -> Self {
Self(data)
}
fn get_value(&self) -> Self::ReturnType {
self.0
}
}
impl ImportantFunctions for UnsignedByte {
type InputType = u8;
type ReturnType = u8;
fn new(data: Self::InputType) -> Self {
Self(data)
}
fn get_value(&self) -> Self::ReturnType {
self.0
}
}
impl ImportantFunctions for Short {
type InputType = i16;
type ReturnType = Self::InputType;
fn new(data: Self::InputType) -> Self {
Self(data)
}
fn get_value(&self) -> Self::ReturnType {
self.0
}
}
impl ImportantFunctions for UnsignedShort {
type InputType = u16;
type ReturnType = Self::InputType;
fn new(data: Self::InputType) -> Self {
Self(data)
}
fn get_value(&self) -> Self::ReturnType {
self.0
}
}
impl ImportantFunctions for Int {
type InputType = i32;
type ReturnType = Self::InputType;
fn new(data: Self::InputType) -> Self {
Self(data)
}
fn get_value(&self) -> Self::ReturnType {
self.0
}
}
impl ImportantFunctions for Float {
type InputType = f32;
type ReturnType = Self::InputType;
fn new(data: Self::InputType) -> Self {
Self(data)
}
fn get_value(&self) -> Self::ReturnType {
self.0
}
}
impl ImportantFunctions for Double {
type InputType = f64;
type ReturnType = Self::InputType;
fn new(data: Self::InputType) -> Self {
Self(data)
}
fn get_value(&self) -> Self::ReturnType {
self.0
}
}