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 PartialOrd for Field
impl PartialOrd for Field
Source§impl TagProperty for Field
impl TagProperty for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin 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