Trait scan_rules::scanner::ScanSelfFromStr  
                   
                       [−]
                   
               [src]
pub trait ScanSelfFromStr<'a>: ScanFromStr<'a, Output=Self> { fn scan_self_from<I: ScanInput<'a>>(s: I) -> Result<(Self, usize), ScanError> { ... } }
This is a convenience trait automatically implemented for all scanners which result in themselves (i.e. ScanFromStr::Output = Self).
This exists to aid type inference.
See: ScanFromStr.
Provided Methods
fn scan_self_from<I: ScanInput<'a>>(s: I) -> Result<(Self, usize), ScanError>
Perform a scan on the given input.
See: ScanFromStr::scan_from.
Implementors
- impl<'a, T> ScanSelfFromStr<'a> for T where T: ScanFromStr<'a, Output=T>