Struct asn1rs_model::model::rust::Field
source · pub struct Field { /* private fields */ }
Implementations§
source§impl Field
impl Field
pub fn from_name_type<T: ToString>(name: T, type: RustType) -> Self
pub fn fallback_representation(&self) -> &(String, RustType)
pub fn name(&self) -> &str
pub fn type(&self) -> &RustType
pub fn constants(&self) -> &[(String, String)]
pub fn with_constants(self, constants: Vec<(String, String)>) -> Self
Trait Implementations§
source§impl PartialEq<Field> for Field
impl PartialEq<Field> for Field
source§impl PartialOrd<Field> for Field
impl PartialOrd<Field> for Field
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TagProperty for Field
impl TagProperty for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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