summaryrefslogtreecommitdiff
path: root/src/utility.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-03-11 22:15:34 +0100
committerLaurenz <laurmaedje@gmail.com>2019-03-11 22:15:34 +0100
commit107450ee5ca8e7e0bc03cf6ce9f59268aa20e9f6 (patch)
tree4d9df95eb410d7dab96cb7182d6c981ff27f9273 /src/utility.rs
parent0511979942625e0b1aa77f090621e4f35a2cf242 (diff)
Restructure typeset crate ✈
Diffstat (limited to 'src/utility.rs')
-rw-r--r--src/utility.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/utility.rs b/src/utility.rs
index 4e6bc7d9..efe519c4 100644
--- a/src/utility.rs
+++ b/src/utility.rs
@@ -29,7 +29,6 @@ pub trait Splinor {
}
impl Splinor for str {
- #[inline]
fn spline<'s, T: Clone>(&'s self, pat: &'s str, splinor: T) -> Spline<'s, T> {
Spline {
splinor: Splined::Splinor(splinor),
@@ -61,7 +60,6 @@ pub enum Splined<'s, T> {
impl<'s, T: Clone> Iterator for Spline<'s, T> {
type Item = Splined<'s, T>;
- #[inline]
fn next(&mut self) -> Option<Splined<'s, T>> {
if self.next_splinor && self.split.peek().is_some() {
self.next_splinor = false;
@@ -73,7 +71,6 @@ impl<'s, T: Clone> Iterator for Spline<'s, T> {
}
}
-
/// More useful functions on `str`'s.
pub trait StrExt {
/// Whether self consists only of whitespace.
@@ -84,12 +81,10 @@ pub trait StrExt {
}
impl StrExt for str {
- #[inline]
fn is_whitespace(&self) -> bool {
self.chars().all(|c| c.is_whitespace() && c != '\n')
}
- #[inline]
fn is_identifier(&self) -> bool {
let mut chars = self.chars();