Trait Intrinsic

Source
pub trait Intrinsic:
    Debug
    + Sized
    + Clone
    + Copy {
    // Required methods
    fn name(&self) -> Cow<'_, str>;
    fn id(&self) -> IntrinsicId;
    fn inputs(&self) -> Vec<NameAndType>;
    fn outputs(&self) -> Vec<Conf<Ref<Type>>>;

    // Provided method
    fn class(&self) -> BNIntrinsicClass { ... }
}

Required Methods§

Source

fn name(&self) -> Cow<'_, str>

Source

fn id(&self) -> IntrinsicId

Unique identifier for this Intrinsic.

Source

fn inputs(&self) -> Vec<NameAndType>

List of the input names and types for this intrinsic.

Source

fn outputs(&self) -> Vec<Conf<Ref<Type>>>

List of the output types for this intrinsic.

Provided Methods§

Source

fn class(&self) -> BNIntrinsicClass

The intrinsic class for this Intrinsic.

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§