[][src]Struct alacritty::url::Urls

pub struct Urls {
    locator: UrlLocator,
    urls: Vec<Url>,
    scheme_buffer: Vec<(Point, Rgb)>,
    last_point: Option<Point>,
    state: UrlLocation,
}

Fields

locator: UrlLocatorurls: Vec<Url>scheme_buffer: Vec<(Point, Rgb)>last_point: Option<Point>state: UrlLocation

Implementations

impl Urls[src]

pub fn new() -> Self[src]

pub fn update(&mut self, num_cols: Column, cell: &RenderableCell)[src]

fn extend_url(&mut self, start: Point, end: Point, color: Rgb, end_offset: u16)[src]

Extend the last URL.

pub fn highlighted(
    &self,
    config: &TermConfig<UIConfig>,
    mouse: &Mouse,
    mods: ModifiersState,
    mouse_mode: bool,
    selection: bool
) -> Option<Url>
[src]

Find URL below the mouse cursor.

pub fn find_at(&self, point: Point) -> Option<Url>[src]

Find URL at location.

fn reset(&mut self)[src]

Trait Implementations

impl Default for Urls[src]

Auto Trait Implementations

impl RefUnwindSafe for Urls

impl Send for Urls

impl Sync for Urls

impl Unpin for Urls

impl UnwindSafe for Urls

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.