Trait HlGroup

Source
pub trait HlGroup: Sealed {
    type Error;

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

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

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl HlGroup for &str

Source§

type Error = Error

Source§

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

Implementors§