Skip to main content

HlGroup

Trait HlGroup 

pub trait HlGroup: Sealed {
    type Error;

    // Required method
    fn to_hl_id(&self) -> Result<i64, Self::Error>;
}
Expand description

A trait implemented by types that can be converted to a highlight group ID.

Required Associated Types§

type Error

Required Methods§

fn to_hl_id(&self) -> Result<i64, Self::Error>

Implementations on Foreign Types§

§

impl HlGroup for &str

§

type Error = Error

§

fn to_hl_id(&self) -> Result<i64, <&str as HlGroup>::Error>

§

impl HlGroup for i64

§

type Error = Infallible

§

fn to_hl_id(&self) -> Result<i64, <i64 as HlGroup>::Error>

Implementors§