diff options
-rw-r--r-- | src/strip.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/strip.rs b/src/strip.rs index b10fb44..97cf3ae 100644 --- a/src/strip.rs +++ b/src/strip.rs @@ -37,6 +37,7 @@ impl Strip { /// ph.strip(s, Strip::new()) /// } /// ``` + #[inline] pub const fn new() -> Strip { Strip { hidden: false, @@ -56,6 +57,7 @@ impl Strip { /// ph.strip(s, Strip::new().colors(true)) /// } /// ``` + #[inline] pub const fn colors(mut self, strip: bool) -> Self { self.colors = strip; self @@ -72,6 +74,7 @@ impl Strip { /// ph.strip(s, Strip::new().formatting(true)) /// } /// ``` + #[inline] pub const fn formatting(mut self, strip: bool) -> Self { self.formatting = strip; self @@ -93,6 +96,7 @@ impl Strip { /// ph.strip(s, Strip::new().hidden(true)) /// } /// ``` + #[inline] pub const fn hidden(mut self, strip: bool) -> Self { self.hidden = strip; self @@ -109,6 +113,7 @@ impl Strip { /// ph.strip(s, Strip::all()) /// } /// ``` + #[inline] pub const fn all() -> Strip { Strip { hidden: true, |