Struct hapi_rs::asset::AssetParm

source ·
pub struct AssetParm<'a> { /* private fields */ }
Expand description

Holds info and default value of a parameter

Implementations§

source§

impl<'a> AssetParm<'a>

source

pub fn default_value(&self) -> ParmValue<'a>

Get parameter default value

source

pub fn menu_items(&self) -> Option<&[ParmChoiceInfo]>

Returns menu parameter items. Note, dynamic(script) menus should be queried directly from a node.

Methods from Deref<Target = ParmInfo>§

source

pub fn id(&self) -> ParmHandle

source

pub fn parent_id(&self) -> ParmHandle

source

pub fn child_index(&self) -> i32

source

pub fn parm_type(&self) -> ParmType

source

pub fn script_type(&self) -> PrmScriptType

source

pub fn permissions(&self) -> Permissions

source

pub fn tag_count(&self) -> i32

source

pub fn size(&self) -> i32

source

pub fn choice_count(&self) -> i32

source

pub fn choice_list_type(&self) -> ChoiceListType

source

pub fn has_min(&self) -> bool

source

pub fn has_max(&self) -> bool

source

pub fn has_uimin(&self) -> bool

source

pub fn has_uimax(&self) -> bool

source

pub fn min(&self) -> f32

source

pub fn max(&self) -> f32

source

pub fn uimin(&self) -> f32

source

pub fn uimax(&self) -> f32

source

pub fn invisible(&self) -> bool

source

pub fn disabled(&self) -> bool

source

pub fn spare(&self) -> bool

source

pub fn join_next(&self) -> bool

source

pub fn label_none(&self) -> bool

source

pub fn int_values_index(&self) -> i32

source

pub fn float_values_index(&self) -> i32

source

pub fn string_values_index(&self) -> i32

source

pub fn choice_index(&self) -> i32

source

pub fn input_node_type(&self) -> NodeType

source

pub fn input_node_flag(&self) -> NodeFlags

source

pub fn is_child_of_multi_parm(&self) -> bool

source

pub fn instance_num(&self) -> i32

source

pub fn instance_length(&self) -> i32

source

pub fn instance_count(&self) -> i32

source

pub fn instance_start_offset(&self) -> i32

source

pub fn ramp_type(&self) -> RampType

source

pub fn type_info(&self) -> Result<String>

source

pub fn name(&self) -> Result<String>

source

pub fn name_cstr(&self) -> Result<CString>

source

pub fn label(&self) -> Result<String>

source

pub fn template_name(&self) -> Result<String>

source

pub fn help(&self) -> Result<String>

source

pub fn visibility_condition(&self) -> Result<String>

source

pub fn disabled_condition(&self) -> Result<String>

Trait Implementations§

source§

impl<'a> Deref for AssetParm<'a>

§

type Target = ParmInfo

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for AssetParm<'a>

§

impl<'a> Send for AssetParm<'a>

§

impl<'a> Sync for AssetParm<'a>

§

impl<'a> Unpin for AssetParm<'a>

§

impl<'a> !UnwindSafe for AssetParm<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.