[−][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]
Gst 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<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 Into<Decl> for FunctionDecl
[src]
impl PartialEq<FunctionDecl> for FunctionDecl
[src]
fn eq(&self, other: &FunctionDecl) -> bool
[src]
fn ne(&self, other: &FunctionDecl) -> bool
[src]
impl Eq for FunctionDecl
[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 Ord for FunctionDecl
[src]
fn cmp(&self, other: &FunctionDecl) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Clone for FunctionDecl
[src]
fn clone(&self) -> FunctionDecl
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for FunctionDecl
[src]
impl Copy for FunctionDecl
[src]
impl Debug for FunctionDecl
[src]
Auto Trait Implementations
impl Send for FunctionDecl
impl Sync for FunctionDecl
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,