[][src]Struct ffishim::Field

pub struct Field {
    pub opaque: bool,
    pub ident: Option<Ident>,
    pub vis: Visibility,
    pub ty: Type,
}

A FFIShim field as loaded by darling.

This structure represents a field as ingested by ffishim. Other structures iterate on sets of Fields 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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.