diff --git a/src/lib.rs b/src/lib.rs index ed7a919..775c4e6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,9 @@ mod macros; -pub mod vector; +mod vector; + +pub use vector::Vector2; +pub use vector::Vector3; +pub use vector::Vector4; #[cfg(test)] mod tests; diff --git a/src/macros/mod.rs b/src/macros/mod.rs index 5215000..ffac9aa 100644 --- a/src/macros/mod.rs +++ b/src/macros/mod.rs @@ -11,7 +11,7 @@ macro_rules! impl_vector { /// # Example /// /// ``` - /// use fixed_wide_vectors::vector::Vector2; + /// use fixed_wide_vectors::Vector2; /// /// let vec2 = Vector2::new(0, 0); /// @@ -30,7 +30,7 @@ macro_rules! impl_vector { /// # Example /// /// ``` - /// use fixed_wide_vectors::vector::Vector2; + /// use fixed_wide_vectors::Vector2; /// /// let vec2 = Vector2::new(0, 0); /// let array = vec2.to_array(); @@ -47,7 +47,7 @@ macro_rules! impl_vector { /// # Example /// /// ``` - /// use fixed_wide_vectors::vector::Vector2; + /// use fixed_wide_vectors::Vector2; /// /// let vec2 = Vector2::new(0, 0); /// let tuple = vec2.to_tuple(); @@ -64,7 +64,7 @@ macro_rules! impl_vector { /// # Example /// /// ``` - /// use fixed_wide_vectors::vector::Vector2; + /// use fixed_wide_vectors::Vector2; /// /// let vec2 = Vector2::new(1, 2) /// .map(|i| i * 2); @@ -88,7 +88,7 @@ macro_rules! impl_vector { /// # Example /// /// ``` - /// use fixed_wide_vectors::vector::Vector2; + /// use fixed_wide_vectors::Vector2; /// /// let vec2 = Vector2::from_value(0); /// diff --git a/src/vector.rs b/src/vector.rs index 8d28105..2767ad8 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -5,7 +5,7 @@ /// # Example /// /// ``` -/// use fixed_wide_vectors::vector::Vector2; +/// use fixed_wide_vectors::Vector2; /// /// let mut vec2 = Vector2::new(1, 2); /// vec2 += Vector2::new(1, 2); @@ -24,7 +24,7 @@ pub struct Vector2 { /// # Example /// /// ``` -/// use fixed_wide_vectors::vector::Vector3; +/// use fixed_wide_vectors::Vector3; /// /// let mut vec3 = Vector3::new(1, 2, 3); /// vec3 += Vector3::new(1, 2, 3); @@ -45,7 +45,7 @@ pub struct Vector3 { /// # Example /// /// ``` -/// use fixed_wide_vectors::vector::Vector4; +/// use fixed_wide_vectors::Vector4; /// /// let mut vec4 = Vector4::new(1, 2, 3, 4); /// vec4 += Vector4::new(1, 2, 3, 4);