-
Notifications
You must be signed in to change notification settings - Fork 972
Closed
Description
struct TagTerminatedByteMatcher {
matcher: ByteMatcher,
}
struct ByteMatcher {
pattern: &'static str,
mask: &'static str,
}
fn main() {
TagTerminatedByteMatcher {
matcher: ByteMatcher{
pattern: b"<HTML",
mask: b"\xFF\xDF\xDF\xDF\xDF\xFF",
}
};
}yields
struct TagTerminatedByteMatcher {
matcher: ByteMatcher,
}
struct ByteMatcher {
pattern: &'static str,
mask: &'static str,
}
fn main() {
TagTerminatedByteMatcher {
matcher: ByteMatcher {
pattern: b"<HTML",
mask: b"\xFF\xDF\xDF\xDF\xDF\xFF",
},
};
}Metadata
Metadata
Assignees
Labels
No labels