Trait bip_bencode::BMutAccess
[−]
[src]
pub trait BMutAccess: Sized + BRefAccess { fn kind_mut<'a>(&'a mut self) -> BencodeMutKind<'a, Self::BKey, Self::BType>; fn list_mut(&mut self) -> Option<&mut BListAccess<Self::BType>>; fn dict_mut(&mut self) -> Option<&mut BDictAccess<Self::BKey, Self::BType>>; }
Trait for write access to some bencode type.
Required Methods
fn kind_mut<'a>(&'a mut self) -> BencodeMutKind<'a, Self::BKey, Self::BType>
Access the bencode as a BencodeMutKind
.
fn list_mut(&mut self) -> Option<&mut BListAccess<Self::BType>>
Attempt to access the bencode as a mutable BListAccess
.
fn dict_mut(&mut self) -> Option<&mut BDictAccess<Self::BKey, Self::BType>>
Attempt to access the bencode as a mutable BDictAccess
.
Implementors
impl<'a> BMutAccess for BencodeMut<'a>