pub fn new(expr: &'a [u8]) -> Option<Self> {
            let mut iter = expr.iter();
            if let Some(x) = iter.next() {
                if *x == b'@' {
                    Some(ChannelList {
                        chars: iter.clone(),
                        first: true,
                    })
                } else {
                    None
                }
            } else {
                None
            }
        }
/// Create a new channel-list tokenizer
///
/// # Returns
/// `Some(Tokenizer)` - Expression is a channel-list (starts with '@')
/// `None` - Expression is not a channel-list
Create a new channel-list tokenizer
Create a new channel - list tokenizer
pub fn new(expr: &'a [u8]) -> Option<Self> {
            let mut iter = expr.iter();
            if let Some(x) = iter.next() {
                if *x == b'@' {
                    Some(ChannelList {
                        chars: iter.clone(),
                        first: true,
                    })
                } else {
                    None
                }
            } else {
                None
            }
        }
pub fn new ( expr : & ' a [ u8 ] ) -> Option < Self > { let mut iter = expr . iter ( ) ; if let Some ( x ) = iter . next ( ) { if * x == b'@' { Some ( ChannelList { chars : iter . clone ( ) , first : true , } ) } else { None } } else { None } }
Create a new channel-list tokenizer
Create a new channel - list tokenizer
expr
&'a [u8]
`Some(Tokenizer)` - Expression is a channel-list (starts with '@')
`None` - Expression is not a channel-list
` Some ( Tokenizer ) ` - Expression is a channel - list ( starts with ' @ ' ) ` None ` - Expression is not a channel - list
expr
&'a [u8]