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§
fn get_id() -> ObsString
fn get_type() -> SourceType
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.