pub trait AttribAccess: Sized + 'static {
    // Required methods
    fn storage() -> StorageType;
    fn storage_array() -> StorageType;
    fn get(
        name: &CStr,
        node: &HoudiniNode,
        info: &AttributeInfo,
        part_id: i32,
        buffer: &mut Vec<Self>
    ) -> Result<()>;
    fn set(
        name: &CStr,
        node: &HoudiniNode,
        info: &AttributeInfo,
        part_id: i32,
        data: &[Self],
        start: i32,
        len: i32
    ) -> Result<()>;
    fn get_array(
        name: &CStr,
        node: &HoudiniNode,
        info: &AttributeInfo,
        part: i32
    ) -> Result<DataArray<'static, Self>>
       where [Self]: ToOwned<Owned = Vec<Self>>;
    fn set_array(
        name: &CStr,
        node: &HoudiniNode,
        info: &AttributeInfo,
        part: i32,
        data: &[Self],
        sizes: &[i32]
    ) -> Result<()>
       where [Self]: ToOwned<Owned = Vec<Self>>;
}

Required Methods§

source

fn storage() -> StorageType

source

fn storage_array() -> StorageType

source

fn get( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part_id: i32, buffer: &mut Vec<Self> ) -> Result<()>

source

fn set( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part_id: i32, data: &[Self], start: i32, len: i32 ) -> Result<()>

source

fn get_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32 ) -> Result<DataArray<'static, Self>>
where [Self]: ToOwned<Owned = Vec<Self>>,

source

fn set_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[Self], sizes: &[i32] ) -> Result<()>
where [Self]: ToOwned<Owned = Vec<Self>>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AttribAccess for f32

source§

fn storage() -> StorageType

source§

fn storage_array() -> StorageType

source§

fn get( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, buffer: &mut Vec<Self> ) -> Result<()>

source§

fn set( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[f32], start: i32, len: i32 ) -> Result<()>

source§

fn get_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32 ) -> Result<DataArray<'static, Self>>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

fn set_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[f32], sizes: &[i32] ) -> Result<()>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

impl AttribAccess for f64

source§

fn storage() -> StorageType

source§

fn storage_array() -> StorageType

source§

fn get( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, buffer: &mut Vec<Self> ) -> Result<()>

source§

fn set( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[f64], start: i32, len: i32 ) -> Result<()>

source§

fn get_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32 ) -> Result<DataArray<'static, Self>>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

fn set_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[f64], sizes: &[i32] ) -> Result<()>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

impl AttribAccess for i8

source§

fn storage() -> StorageType

source§

fn storage_array() -> StorageType

source§

fn get( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, buffer: &mut Vec<Self> ) -> Result<()>

source§

fn set( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[i8], start: i32, len: i32 ) -> Result<()>

source§

fn get_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32 ) -> Result<DataArray<'static, Self>>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

fn set_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[i8], sizes: &[i32] ) -> Result<()>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

impl AttribAccess for i16

source§

fn storage() -> StorageType

source§

fn storage_array() -> StorageType

source§

fn get( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, buffer: &mut Vec<Self> ) -> Result<()>

source§

fn set( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[i16], start: i32, len: i32 ) -> Result<()>

source§

fn get_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32 ) -> Result<DataArray<'static, Self>>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

fn set_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[i16], sizes: &[i32] ) -> Result<()>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

impl AttribAccess for i32

source§

fn storage() -> StorageType

source§

fn storage_array() -> StorageType

source§

fn get( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, buffer: &mut Vec<Self> ) -> Result<()>

source§

fn set( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[i32], start: i32, len: i32 ) -> Result<()>

source§

fn get_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32 ) -> Result<DataArray<'static, Self>>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

fn set_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[i32], sizes: &[i32] ) -> Result<()>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

impl AttribAccess for i64

source§

fn storage() -> StorageType

source§

fn storage_array() -> StorageType

source§

fn get( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, buffer: &mut Vec<Self> ) -> Result<()>

source§

fn set( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[i64], start: i32, len: i32 ) -> Result<()>

source§

fn get_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32 ) -> Result<DataArray<'static, Self>>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

fn set_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[i64], sizes: &[i32] ) -> Result<()>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

impl AttribAccess for u8

source§

fn storage() -> StorageType

source§

fn storage_array() -> StorageType

source§

fn get( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, buffer: &mut Vec<Self> ) -> Result<()>

source§

fn set( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[u8], start: i32, len: i32 ) -> Result<()>

source§

fn get_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32 ) -> Result<DataArray<'static, Self>>
where [Self]: ToOwned<Owned = Vec<Self>>,

source§

fn set_array( name: &CStr, node: &HoudiniNode, info: &AttributeInfo, part: i32, data: &[u8], sizes: &[i32] ) -> Result<()>
where [Self]: ToOwned<Owned = Vec<Self>>,

Implementors§