BMutAccess

Trait BMutAccess 

Source
pub trait BMutAccess: Sized + BRefAccess {
    // Required methods
    fn kind_mut<'a>(&'a mut self) -> BencodeMutKind<'a, Self::BKey, Self::BType>;
    fn list_mut(&mut self) -> Option<&mut dyn BListAccess<Self::BType>>;
    fn dict_mut(
        &mut self,
    ) -> Option<&mut dyn BDictAccess<Self::BKey, Self::BType>>;
}
Expand description

Trait for write access to some bencode type.

Required Methods§

Source

fn kind_mut<'a>(&'a mut self) -> BencodeMutKind<'a, Self::BKey, Self::BType>

Access the bencode as a BencodeMutKind.

Source

fn list_mut(&mut self) -> Option<&mut dyn BListAccess<Self::BType>>

Attempt to access the bencode as a mutable BListAccess.

Source

fn dict_mut(&mut self) -> Option<&mut dyn BDictAccess<Self::BKey, Self::BType>>

Attempt to access the bencode as a mutable BDictAccess.

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§