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