[−][src]Struct bcder::string::OctetStringSource
A source atop an octet string.
You can get a value of this type by calling OctetString::source
.
Trait Implementations
impl Source for OctetStringSource
[src]
type Err = Error
The error produced by the source. Read more
pub fn request(&mut self, len: usize) -> Result<usize, Error>
[src]
pub fn advance(&mut self, len: usize) -> Result<(), Error>
[src]
pub fn slice(&self) -> &[u8]
[src]
pub fn bytes(&self, start: usize, end: usize) -> Bytes
[src]
pub fn take_u8(&mut self) -> Result<u8, Self::Err>
[src]
pub fn take_opt_u8(&mut self) -> Result<Option<u8>, Self::Err>
[src]
Auto Trait Implementations
impl RefUnwindSafe for OctetStringSource
[src]
impl Send for OctetStringSource
[src]
impl Sync for OctetStringSource
[src]
impl Unpin for OctetStringSource
[src]
impl UnwindSafe for OctetStringSource
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,