#[repr(C)]pub struct AsiBlockParameter {
pub header: AsiStructureHeader,
pub name: [c_char; 64],
pub type_: [c_char; 64],
pub default_value: [c_char; 64],
}Expand description
A block parameter.
Fields§
§header: AsiStructureHeader§name: [c_char; 64]§type_: [c_char; 64]§default_value: [c_char; 64]Implementations§
§impl AsiBlockParameter
impl AsiBlockParameter
pub fn new(name: &str, type: &str, default_value: Option<&str>) -> Self
pub fn name(&self) -> Result<&str, Utf8Error>
pub fn name_lossy(&self) -> Cow<'_, str>
pub fn type(&self) -> Result<Option<&str>, Utf8Error>
pub fn type_lossy(&self) -> Option<Cow<'_, str>>
pub fn default_value(&self) -> Result<Option<&str>, Utf8Error>
pub fn default_value_lossy(&self) -> Option<Cow<'_, str>>
Trait Implementations§
Source§impl Clone for AsiBlockParameter
impl Clone for AsiBlockParameter
Source§fn clone(&self) -> AsiBlockParameter
fn clone(&self) -> AsiBlockParameter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AsiBlockParameter
impl Debug for AsiBlockParameter
Source§impl Default for AsiBlockParameter
impl Default for AsiBlockParameter
§impl Display for AsiBlockParameter
impl Display for AsiBlockParameter
impl Copy for AsiBlockParameter
Auto Trait Implementations§
impl Freeze for AsiBlockParameter
impl RefUnwindSafe for AsiBlockParameter
impl !Send for AsiBlockParameter
impl !Sync for AsiBlockParameter
impl Unpin for AsiBlockParameter
impl UnwindSafe for AsiBlockParameter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more