Skip to content

Commit c048003

Browse files
authored
Inline Delimiters methods.
1 parent 9542ab4 commit c048003

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/parser.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,19 @@ mod ClosingDelimiter {
190190
impl BitOr<Delimiters> for Delimiters {
191191
type Output = Delimiters;
192192

193+
#[inline]
193194
fn bitor(self, other: Delimiters) -> Delimiters {
194195
Delimiters { bits: self.bits | other.bits }
195196
}
196197
}
197198

198199
impl Delimiters {
200+
#[inline]
199201
fn contains(self, other: Delimiters) -> bool {
200202
(self.bits & other.bits) != 0
201203
}
202204

205+
#[inline]
203206
fn from_byte(byte: Option<u8>) -> Delimiters {
204207
match byte {
205208
Some(b';') => Delimiter::Semicolon,

0 commit comments

Comments
 (0)