[−][src]Struct libchisel::trimexports::TrimExports
Wrapper struct implementing ModuleTranslator. Removes any exports that are noncompliant with a specified interface.
Methods
impl TrimExports
[src]
Trait Implementations
impl<'a> ChiselModule<'a> for TrimExports
[src]
type ObjectReference = &'a dyn ModuleTranslator
fn id(&'a self) -> String
[src]
fn kind(&'a self) -> ModuleKind
[src]
fn as_abstract(&'a self) -> Self::ObjectReference
[src]
impl ModulePreset for TrimExports
[src]
fn with_preset(preset: &str) -> Result<Self, ModuleError>
[src]
Takes a given preset string and constructs a context with the corresponding whitelist.
impl ModuleTranslator for TrimExports
[src]
fn translate_inplace(&self, module: &mut Module) -> Result<bool, ModuleError>
[src]
fn translate(&self, module: &Module) -> Result<Option<Module>, ModuleError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for TrimExports
impl Send for TrimExports
impl Sync for TrimExports
impl Unpin for TrimExports
impl UnwindSafe for TrimExports
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,