pub enum BitStringKind {
Fixed,
Varying,
}Expand description
Fixed and varying declarations share a value representation, but have different input and assignment constraints.
Variants§
Implementations§
Source§impl BitStringKind
impl BitStringKind
Sourcepub fn validate_length(self, length: i64) -> Result<u32>
pub fn validate_length(self, length: i64) -> Result<u32>
Validate the one integer length supplied by the declaration owner. The caller owns modifier arity and array-shape validation.
Trait Implementations§
Source§impl Clone for BitStringKind
impl Clone for BitStringKind
impl Copy for BitStringKind
Source§impl Debug for BitStringKind
impl Debug for BitStringKind
impl Eq for BitStringKind
Source§impl PartialEq for BitStringKind
impl PartialEq for BitStringKind
impl StructuralPartialEq for BitStringKind
Auto Trait Implementations§
impl Freeze for BitStringKind
impl RefUnwindSafe for BitStringKind
impl Send for BitStringKind
impl Sync for BitStringKind
impl Unpin for BitStringKind
impl UnsafeUnpin for BitStringKind
impl UnwindSafe for BitStringKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more