Method lrs::string::ByteStr::starts_with

Returns whether the string starts with a byte slice.

Syntax

impl ByteStr {
    fn starts_with<A>(&self, arg: A) -> bool
        where A: AsRef<[u8]>,
}

Arguments

NameDescription
arg

The byte slice to be checked.