[][src]Struct faerie::FunctionDecl

pub struct FunctionDecl { /* fields omitted */ }

Builder for function declarations

Methods

impl FunctionDecl[src]

pub fn global(self) -> Self[src]

Set scope to global

pub fn local(self) -> Self[src]

Set scope to local

pub fn weak(self) -> Self[src]

Set scope to weak

pub fn with_scope(self, scope: Scope) -> Self[src]

Builder for scope

pub fn get_scope(&self) -> Scope[src]

Get scope

pub fn set_scope(&mut self, scope: Scope)[src]

Set scope

pub fn is_global(&self) -> bool[src]

Check if scope is Scope::Global. False if set to Local or Weak.

pub fn default_visibility(self) -> Self[src]

Set visibility to default

pub fn protected(self) -> Self[src]

Set visibility to protected

pub fn hidden(self) -> Self[src]

Set visibility to hidden

pub fn with_visibility(self, visibility: Visibility) -> Self[src]

Builder for visibility

pub fn get_visibility(&self) -> Visibility[src]

Get visibility

pub fn set_visibility(&mut self, visibility: Visibility)[src]

Set visibility

pub fn with_align(self, align: Option<usize>) -> Self[src]

Build alignment. Size is in bytes. If None, a default is chosen in the backend.

pub fn set_align(&mut self, align: Option<usize>)[src]

Set alignment

pub fn get_align(&self) -> Option<usize>[src]

Get alignment

Trait Implementations

impl Clone for FunctionDecl[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for FunctionDecl[src]

default fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

default fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

default fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Eq for FunctionDecl[src]

impl Into<Decl> for FunctionDecl[src]

impl PartialOrd<FunctionDecl> for FunctionDecl[src]

impl Copy for FunctionDecl[src]

impl PartialEq<FunctionDecl> for FunctionDecl[src]

impl Default for FunctionDecl[src]

impl Debug for FunctionDecl[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]