Struct interoptopus::lang::c::Field
source ยท pub struct Field { /* private fields */ }
Expand description
Fields of a CompositeType
.
Implementationsยง
sourceยงimpl Field
impl Field
pub fn new(name: String, the_type: CType) -> Self
pub fn with_documentation( name: String, the_type: CType, visibility: Visibility, documentation: Documentation, ) -> Self
pub fn name(&self) -> &str
pub fn the_type(&self) -> &CType
pub fn visibility(&self) -> &Visibility
pub fn documentation(&self) -> &Documentation
Trait Implementationsยง
sourceยงimpl Ord for Field
impl Ord for Field
1.21.0 ยท sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
sourceยงimpl PartialOrd for Field
impl PartialOrd for Field
impl Eq 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 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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)