Skip to main content

FigLanguageVTable

Struct FigLanguageVTable 

Source
#[repr(C)]
pub struct FigLanguageVTable {
Show 22 fields pub version: u32, pub size: u32, pub ctx: *mut c_void, pub name: *const c_char, pub caps: u32, pub max_mapping_depth: c_int, pub lossless: u32, pub syntax: *const FigSyntax, pub dialects: *const FigDialectDesc, pub dialect_count: usize, pub dialect_size: usize, pub samples: *const FigStr, pub sample_count: usize, pub parse: FigParseFn, pub print: Option<FigPrintFn>, pub free_table: FigFreeTableFn, pub free_bytes: FigFreeBytesFn, pub render_value: Option<FigRenderFn>, pub render_entry: Option<FigRenderFn>, pub render_item: Option<FigRenderFn>, pub render_tail: Option<FigRenderFn>, pub render_key: Option<FigRenderFn>,
}
Expand description

Mirror of FigLanguageVTable. The five render_* slots and print are Option, which is the null pointer on the C side.

Fields§

§version: u32§size: u32

size_of::<FigLanguageVTable>().

§ctx: *mut c_void§name: *const c_char§caps: u32§max_mapping_depth: c_int§lossless: u32

FIG_LOSSLESS_ENVELOPE and FIG_NATIVE_* bits; 0 for no envelope.

§syntax: *const FigSyntax§dialects: *const FigDialectDesc§dialect_count: usize§dialect_size: usize

size_of::<FigDialectDesc>().

§samples: *const FigStr§sample_count: usize§parse: FigParseFn§print: Option<FigPrintFn>§free_table: FigFreeTableFn§free_bytes: FigFreeBytesFn§render_value: Option<FigRenderFn>§render_entry: Option<FigRenderFn>§render_item: Option<FigRenderFn>§render_tail: Option<FigRenderFn>§render_key: Option<FigRenderFn>

Trait Implementations§

Source§

impl Clone for FigLanguageVTable

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FigLanguageVTable

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.