[−][src]Struct faerie::DataDecl
Builder for data declarations
Methods
impl DataDecl
[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_datatype(self, datatype: DataType) -> Self
[src]
Build datatype
pub fn set_datatype(&mut self, datatype: DataType)
[src]
Set datatype
pub fn get_datatype(&self) -> DataType
[src]
Get datatype
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
pub fn with_writable(self, writable: bool) -> Self
[src]
Builder for writability
pub fn writable(self) -> Self
[src]
Set mutability to writable
pub fn read_only(self) -> Self
[src]
Set mutability to read-only
pub fn set_writable(&mut self, writable: bool)
[src]
Setter for mutability
pub fn is_writable(&self) -> bool
[src]
Accessor for mutability
Trait Implementations
impl Into<Decl> for DataDecl
[src]
impl PartialOrd<DataDecl> for DataDecl
[src]
fn partial_cmp(&self, other: &DataDecl) -> Option<Ordering>
[src]
fn lt(&self, other: &DataDecl) -> bool
[src]
fn le(&self, other: &DataDecl) -> bool
[src]
fn gt(&self, other: &DataDecl) -> bool
[src]
fn ge(&self, other: &DataDecl) -> bool
[src]
impl Copy for DataDecl
[src]
impl PartialEq<DataDecl> for DataDecl
[src]
impl Default for DataDecl
[src]
impl Clone for DataDecl
[src]
fn clone(&self) -> DataDecl
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for DataDecl
[src]
fn cmp(&self, other: &DataDecl) -> 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 Eq for DataDecl
[src]
impl Debug for DataDecl
[src]
Auto Trait Implementations
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> 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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,