ProfileExt

Trait ProfileExt 

Source
pub trait ProfileExt:
    Send
    + Sync
    + Sized {
    // Required methods
    fn fits(url: &Url) -> bool;
    fn extract(html: &Html) -> Option<LinkPreview>;
}

Required Methods§

Source

fn fits(url: &Url) -> bool

Checks if the profile fits the given URL.

Source

fn extract(html: &Html) -> Option<LinkPreview>

Creates a LinkPreview from the provided HTML.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§