updated docs
Dieser Commit ist enthalten in:
Ursprung
55b3cd16f7
Commit
b67724378f
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
|
@ -4,6 +4,7 @@ use crate::predefined_const;
|
|||
|
||||
use super::Kartesian;
|
||||
|
||||
/// implements an method that turns an Kartesian of all sizes into Coordinates
|
||||
macro_rules! to_coords_impl {
|
||||
($subtype:ident) => {
|
||||
impl ToCoords for Kartesian<$subtype> {
|
||||
|
@ -63,9 +64,6 @@ to_coords_impl!(u128);
|
|||
|
||||
impl ToCoords for Kartesian<usize> {
|
||||
fn to_coords(self) -> Kartesian<usize> {
|
||||
Kartesian {
|
||||
x: self.x,
|
||||
y: self.y,
|
||||
}
|
||||
self
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,6 +66,7 @@ pub enum ExtendedOption<T> {
|
|||
None,
|
||||
}
|
||||
|
||||
/// exports an alias to an value of an enum.
|
||||
#[macro_export]
|
||||
macro_rules! enum_alias {
|
||||
($enum:ident, $alias:ident, $target:ident) => {
|
||||
|
@ -78,6 +79,7 @@ macro_rules! enum_alias {
|
|||
};
|
||||
}
|
||||
|
||||
/// reexports an Constant into an constant of an Trait
|
||||
#[macro_export]
|
||||
macro_rules! predefined_const {
|
||||
($trait_name:ident, $const:ident, $t:ty) => {
|
||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren