pub struct SubType(/* private fields */);Expand description
Subtype of some type.
Sub types in binn are defined as numbers in range from 0 to 4096 (excluding 4096).
Used to create values of user-defined types:
use binn_rs::{SubType, Value};
const CUSTOM_TEXT: SubType = SubType::new(7);
let value = Value::UserText(CUSTOM_TEXT, "some text that means something");Implementations§
Trait Implementations§
impl Copy for SubType
impl Eq for SubType
impl StructuralPartialEq for SubType
Auto Trait Implementations§
impl Freeze for SubType
impl RefUnwindSafe for SubType
impl Send for SubType
impl Sync for SubType
impl Unpin for SubType
impl UnwindSafe for SubType
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