Trait BuildArtifact

Source
pub trait BuildArtifact: Any + 'static {
    // Required methods
    fn get_type_id() -> BuildArtifactTypeId
       where Self: Sized;
    fn load(p: &Path) -> Result<Self, Error>
       where Self: Sized;
    fn get_type(&self) -> BuildArtifactTypeId;
    fn write(&self, path: &Path) -> Result<(), Error>;
    fn as_any(&self) -> &dyn Any;
}

Required Methods§

Source

fn get_type_id() -> BuildArtifactTypeId
where Self: Sized,

Source

fn load(p: &Path) -> Result<Self, Error>
where Self: Sized,

§Errors
Source

fn get_type(&self) -> BuildArtifactTypeId

Source

fn write(&self, path: &Path) -> Result<(), Error>

§Errors
Source

fn as_any(&self) -> &dyn Any

Implementors§