Trait Sourceable

Source
pub trait Sourceable: Sized {
    // Required methods
    fn get_id() -> ObsString;
    fn get_type() -> SourceType;
    fn create(
        create: &mut CreatableSourceContext<'_, Self>,
        source: SourceContext,
    ) -> Self;
}

Required Methods§

Source

fn get_id() -> ObsString

Source

fn get_type() -> SourceType

Source

fn create( create: &mut CreatableSourceContext<'_, Self>, source: SourceContext, ) -> Self

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§