pub struct BitStringValue<'a>(/* private fields */);
Implementations§
Source§impl<'a> BitStringValue<'a>
impl<'a> BitStringValue<'a>
pub fn wf(s: &'a [u8]) -> bool
Sourcepub fn new_raw(s: &'a [u8]) -> Option<BitStringValue<'a>>
pub fn new_raw(s: &'a [u8]) -> Option<BitStringValue<'a>>
Create a BitString from raw bytes The first byte of the slice should indicate the number of trailing zeros
Sourcepub fn trailing_zeros(&self) -> u8
pub fn trailing_zeros(&self) -> u8
Get the number of padded zeros at the end
pub fn has_bit(&self, n: usize) -> bool
Trait Implementations§
Source§impl<'a> Debug for BitStringValue<'a>
impl<'a> Debug for BitStringValue<'a>
Source§impl<'a> PolyfillClone for BitStringValue<'a>
impl<'a> PolyfillClone for BitStringValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for BitStringValue<'a>
impl<'a> RefUnwindSafe for BitStringValue<'a>
impl<'a> Send for BitStringValue<'a>
impl<'a> Sync for BitStringValue<'a>
impl<'a> Unpin for BitStringValue<'a>
impl<'a> UnwindSafe for BitStringValue<'a>
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<T> From<T> for Twhere
T: View,
<T as View>::V: SpecFrom<<T as View>::V>,
impl<T> From<T> for Twhere
T: View,
<T as View>::V: SpecFrom<<T as View>::V>,
Source§fn ex_from(t: T) -> T
fn ex_from(t: T) -> T
Vest equivalent of
std::convert::From::from
.Source§impl<T, U> Into<U> for T
impl<T, U> Into<U> for T
Source§fn ex_into(self) -> U
fn ex_into(self) -> U
Vest equivalent of
std::convert::Into::into
.Source§impl<T, U> SpecTryInto<U> for Twhere
U: SpecTryFrom<T>,
impl<T, U> SpecTryInto<U> for Twhere
U: SpecTryFrom<T>,
Source§type Error = <U as SpecTryFrom<T>>::Error
type Error = <U as SpecTryFrom<T>>::Error
The type returned in the event of a conversion error.