[][src]Struct urlocator::UrlLocator

pub struct UrlLocator { /* fields omitted */ }

URL parser.

Implementations

impl UrlLocator[src]

pub fn new() -> Self[src]

Create a new parser.

pub fn advance(&mut self, c: char) -> UrlLocation[src]

Advance the parser by one char.

Example

let mut locator = UrlLocator::new();

let location = locator.advance('h');

assert_eq!(location, UrlLocation::Scheme);

Trait Implementations

impl Clone for UrlLocator[src]

impl Copy for UrlLocator[src]

impl Debug for UrlLocator[src]

impl Default for UrlLocator[src]

impl Eq for UrlLocator[src]

impl Hash for UrlLocator[src]

impl PartialEq<UrlLocator> for UrlLocator[src]

impl StructuralEq for UrlLocator[src]

impl StructuralPartialEq for UrlLocator[src]

Auto Trait Implementations

impl Send for UrlLocator

impl Sync for UrlLocator

impl Unpin for UrlLocator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.