[−][src]Struct faerie::FunctionDecl
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
[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<u64>) -> 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<u64>)[src]
Set alignment
pub fn get_align(&self) -> Option<u64>[src]
Get alignment
Trait Implementations
impl Clone for FunctionDecl[src]
fn clone(&self) -> FunctionDecl[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for FunctionDecl[src]
impl Debug for FunctionDecl[src]
impl Default for FunctionDecl[src]
impl Eq for FunctionDecl[src]
impl Into<Decl> for FunctionDecl[src]
impl Ord for FunctionDecl[src]
fn cmp(&self, other: &FunctionDecl) -> Ordering[src]
#[must_use]
fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<FunctionDecl> for FunctionDecl[src]
fn eq(&self, other: &FunctionDecl) -> bool[src]
fn ne(&self, other: &FunctionDecl) -> bool[src]
impl PartialOrd<FunctionDecl> for FunctionDecl[src]
fn partial_cmp(&self, other: &FunctionDecl) -> Option<Ordering>[src]
fn lt(&self, other: &FunctionDecl) -> bool[src]
fn le(&self, other: &FunctionDecl) -> bool[src]
fn gt(&self, other: &FunctionDecl) -> bool[src]
fn ge(&self, other: &FunctionDecl) -> bool[src]
impl StructuralEq for FunctionDecl[src]
impl StructuralPartialEq for FunctionDecl[src]
Auto Trait Implementations
impl RefUnwindSafe for FunctionDecl
impl Send for FunctionDecl
impl Sync for FunctionDecl
impl Unpin for FunctionDecl
impl UnwindSafe for FunctionDecl
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,