pub struct Module {
pub name: Index<Utf8>,
}
Fields§
§name: Index<Utf8>
Implementations§
source§impl Module
impl Module
pub fn by<I>(name: I) -> ModuleInserter<I>where
I: Insertable<Utf8>,
Trait Implementations§
source§impl Insertable<Module> for Index<Module>
impl Insertable<Module> for Index<Module>
fn insert<Ctx: EncoderContext>( self, _: &mut Ctx, ) -> Result<Index<Module>, EncodeError>
source§impl Insertable<Module> for Module
impl Insertable<Module> for Module
fn insert<Ctx: EncoderContext>( self, context: &mut Ctx, ) -> Result<Index<Module>, EncodeError>
source§impl<I: Insertable<Utf8>> Insertable<Module> for ModuleInserter<I>
impl<I: Insertable<Utf8>> Insertable<Module> for ModuleInserter<I>
fn insert<Ctx: EncoderContext>( self, context: &mut Ctx, ) -> Result<Index<Module>, EncodeError>
source§impl PartialEq for Module
impl PartialEq for Module
impl Eq for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.