[][src]Struct rebound::info::Field

pub struct Field { /* fields omitted */ }

Implementations

impl Field[src]

pub unsafe fn new_named(
    get_ptr: Box<dyn Fn(&'a Value<'a>) -> Value<'a>>,
    set_ptr: Box<dyn Fn(&mut Value<'_>, Value<'static>)>,
    name: &'static str,
    assoc_ty: Type,
    field_ty: Type
) -> Field
[src]

pub unsafe fn new_tuple(
    get_ptr: Box<dyn Fn(&'a Value<'a>) -> Value<'a>>,
    set_ptr: Box<dyn Fn(&mut Value<'_>, Value<'static>)>,
    idx: usize,
    assoc_ty: Type,
    field_ty: Type
) -> Field
[src]

pub unsafe fn new_enum_named(
    get_ptr: Box<dyn Fn(&'a Value<'a>) -> Value<'a>>,
    set_ptr: Box<dyn Fn(&mut Value<'_>, Value<'static>)>,
    name: &'static str,
    assoc_ty: Type,
    assoc_var: VariantInfo,
    field_ty: Type
) -> Field
[src]

pub unsafe fn new_enum_tuple(
    get_ptr: Box<dyn Fn(&'a Value<'a>) -> Value<'a>>,
    set_ptr: Box<dyn Fn(&mut Value<'_>, Value<'static>)>,
    idx: usize,
    assoc_ty: Type,
    assoc_var: VariantInfo,
    field_ty: Type
) -> Field
[src]

pub fn assoc_ty(&self) -> Type[src]

pub fn ty(&self) -> Type[src]

pub fn kind(&self) -> &FieldKind[src]

pub fn get_ref<'a>(&self, this: &'a Value<'a>) -> Result<Value<'a>, Error>[src]

pub fn set(
    &self,
    this: &mut Value<'_>,
    other: Value<'static>
) -> Result<(), Error>
[src]

Trait Implementations

impl Debug for Field[src]

Auto Trait Implementations

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.