Struct intuicio_essentials::prelude::StructField
source · pub struct StructField {
pub meta: Option<Meta>,
pub name: String,
pub visibility: Visibility,
/* private fields */
}Fields§
§meta: Option<Meta>§name: String§visibility: VisibilityImplementations§
source§impl StructField
impl StructField
pub fn new(name: impl ToString, struct_handle: Arc<Struct>) -> StructField
pub fn with_meta(self, meta: Meta) -> StructField
pub fn with_visibility(self, visibility: Visibility) -> StructField
pub fn address_offset(&self) -> usize
pub fn struct_handle(&self) -> &Arc<Struct>
Trait Implementations§
source§impl Debug for StructField
impl Debug for StructField
source§impl PartialEq for StructField
impl PartialEq for StructField
source§fn eq(&self, other: &StructField) -> bool
fn eq(&self, other: &StructField) -> bool
This method tests for
self and other values to be equal, and is used
by ==.Auto Trait Implementations§
impl RefUnwindSafe for StructField
impl Send for StructField
impl Sync for StructField
impl Unpin for StructField
impl UnwindSafe for StructField
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