diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2022-04-17 18:37:22 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2022-04-17 18:37:22 -0300 |
commit | 2772887c9ea3676149bc37b5b296bd85ae0c9e1c (patch) | |
tree | 538156f83bb19ef521fc7636c3088767649aa87b /src | |
parent | a2cc6b3f56e144bdc8927364b6d394150d94bdb9 (diff) |
Add inline attributes
Diffstat (limited to 'src')
-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, |