diff --git a/Cargo.toml b/Cargo.toml index f60cb60..d6a6f69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = ["Wedson Almeida Filho ", "WeiKang Guo Self { + pub const fn new(inner: $type) -> Self { Self { inner, links: $crate::Links::new(), @@ -36,13 +36,13 @@ macro_rules! __def_node_internal { #[inline] #[doc = "Return the referece of wrapped inner"] - $vis const fn inner(&self) -> &$type { + pub const fn inner(&self) -> &$type { &self.inner } #[inline] #[doc = "Consumes the `node`, returning the wrapped inner"] - $vis fn into_inner(self) -> $type { + pub const fn into_inner(self) -> $type { self.inner } } @@ -75,7 +75,7 @@ macro_rules! __def_node_internal { impl<$gen> $name<$gen> { #[doc = "Create a node"] - $vis const fn new(inner: $type) -> Self { + pub const fn new(inner: $type) -> Self { Self { inner, links: $crate::Links::new(), @@ -84,13 +84,13 @@ macro_rules! __def_node_internal { #[inline] #[doc = "Return the referece of wrapped inner"] - $vis const fn inner(&self) -> &$type { + pub const fn inner(&self) -> &$type { &self.inner } #[inline] #[doc = "Consumes the `node`, returning the wrapped inner"] - $vis fn into_inner(self) -> $type { + pub fn into_inner(self) -> $type { self.inner } }