pub trait HyperType: Display + Debug {
    // Required methods
    fn as_shared(&self) -> Shared;
    fn as_any(&self) -> &dyn Any;
    fn is_file(&self) -> bool;
    fn is_directory(&self) -> bool;
    fn is_spaces(&self) -> bool;
    fn is_syntax(&self) -> bool;
    fn get_lang(&self) -> LangWrapper<Self>
       where Self: Sized;

    // Provided method
    fn generic_eq(&self, other: &dyn HyperType) -> bool
       where Self: 'static + PartialEq + Sized { ... }
}

Required Methods§

source

fn as_shared(&self) -> Shared

source

fn as_any(&self) -> &dyn Any

source

fn is_file(&self) -> bool

source

fn is_directory(&self) -> bool

source

fn is_spaces(&self) -> bool

source

fn is_syntax(&self) -> bool

source

fn get_lang(&self) -> LangWrapper<Self>where Self: Sized,

Provided Methods§

source

fn generic_eq(&self, other: &dyn HyperType) -> boolwhere Self: 'static + PartialEq + Sized,

Trait Implementations§

source§

impl From<&'static dyn HyperType> for AnyType

source§

fn from(value: &'static dyn HyperType) -> Self

Converts to this type from the input type.

Implementations on Foreign Types§

source§

impl HyperType for u8

source§

fn as_shared(&self) -> Shared

source§

fn as_any(&self) -> &dyn Any

source§

fn is_file(&self) -> bool

source§

fn is_directory(&self) -> bool

source§

fn is_spaces(&self) -> bool

source§

fn is_syntax(&self) -> bool

source§

fn get_lang(&self) -> LangWrapper<Self>where Self: Sized,

Implementors§