pub struct Package {
pub name: Index<Utf8>,
}
Fields§
§name: Index<Utf8>
Implementations§
source§impl Package
impl Package
pub fn by<I>(name: I) -> PackageInserter<I>where
I: Insertable<Utf8>,
Trait Implementations§
source§impl Insertable<Package> for Index<Package>
impl Insertable<Package> for Index<Package>
fn insert<Ctx: EncoderContext>( self, _: &mut Ctx, ) -> Result<Index<Package>, EncodeError>
source§impl Insertable<Package> for Package
impl Insertable<Package> for Package
fn insert<Ctx: EncoderContext>( self, context: &mut Ctx, ) -> Result<Index<Package>, EncodeError>
source§impl<I: Insertable<Utf8>> Insertable<Package> for PackageInserter<I>
impl<I: Insertable<Utf8>> Insertable<Package> for PackageInserter<I>
fn insert<Ctx: EncoderContext>( self, context: &mut Ctx, ) -> Result<Index<Package>, EncodeError>
source§impl PartialEq for Package
impl PartialEq for Package
impl Eq for Package
impl StructuralPartialEq for Package
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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.