pub enum DropSection {
NamesSection,
CustomSectionByName(String),
CustomSectionByIndex(usize),
UnknownSectionByIndex(usize),
}
Expand description
Enum on which ModuleTranslator is implemented.
Variants§
NamesSection
CustomSectionByName(String)
Name of the custom section.
CustomSectionByIndex(usize)
Index of the custom section.
UnknownSectionByIndex(usize)
Index of the unknown section.
Trait Implementations§
Source§impl<'a> ChiselModule<'a> for DropSection
impl<'a> ChiselModule<'a> for DropSection
type ObjectReference = &'a dyn ModuleTranslator
fn kind(&'a self) -> ModuleKind
Source§fn as_abstract(&'a self) -> Self::ObjectReference
fn as_abstract(&'a self) -> Self::ObjectReference
Borrows the instance as a trait object.
Source§impl<'a> ModuleTranslator for DropSection
impl<'a> ModuleTranslator for DropSection
Source§fn translate_inplace(&self, module: &mut Module) -> Result<bool, ModuleError>
fn translate_inplace(&self, module: &mut Module) -> Result<bool, ModuleError>
Translates module in-place. Returns true if the module was modified. Can fail with ModuleError::NotSupported.
Auto Trait Implementations§
impl Freeze for DropSection
impl RefUnwindSafe for DropSection
impl Send for DropSection
impl Sync for DropSection
impl Unpin for DropSection
impl UnwindSafe for DropSection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more