[−][src]Struct ffishim::Field
A FFIShim field as loaded by darling.
This structure represents a field as ingested by ffishim. Other structures iterate on sets of
Field
s to generate code.
Fields
opaque: bool
This field will not be exposed as such and instead be replaced by a pointer to the value.
This is useful in case a type you want to expose through the ffi holds one field that cannot be represented/modeled in the other language, or it should not.
ident: Option<Ident>
Name of the field (empty for tuple structs.)
vis: Visibility
Visibility of the given field. All ffi fields are public by default.
ty: Type
Type of the original field.
Trait Implementations
impl Debug for Field
[src]
impl FromField for Field
[src]
fn from_field(__field: &Field) -> Result<Self>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,