pub fn table_get(&self, table: u32, index: u32) -> Result<f64, &'static str> {
        unsafe {
            let size = self.table_length(table)?;
            if index < size as u32 {
                Ok(
                    csound_sys::csoundTableGet(self.engine.csound, table as c_int, index as c_int)
                        as f64,
                )
            } else {
                Err("index out of range")
            }
        }
    }
/// Returns the value of a slot in a function table.
/// If the Table or index are not valid, an error message will be returned.
/// # Arguments
/// * `table` The function table identifier.
/// * `index` The value at table[index] which will be read.
Returns the value of a slot in a function table.
If the Table or index are not valid, an error message will be returned.
Returns the value of a slot in a function table . If the Table or index are not valid an error message will be returned .
pub fn table_get(&self, table: u32, index: u32) -> Result<f64, &'static str> {
        unsafe {
            let size = self.table_length(table)?;
            if index < size as u32 {
                Ok(
                    csound_sys::csoundTableGet(self.engine.csound, table as c_int, index as c_int)
                        as f64,
                )
            } else {
                Err("index out of range")
            }
        }
    }
pub fn table_get ( & self , table : u32 , index : u32 ) -> Result < f64 , & ' static str > { unsafe { let size = self . table_length ( table ) ? ; if index < size as u32 { Ok ( csound_sys :: csoundTableGet ( self . engine . csound , table as c_int , index as c_int ) as f64 , ) } else { Err ( " " ) } } }
Returns the value of a slot in a function table.
Returns the value of a slot in a function table .
&self
table
u32
index
u32
&self
table
u32
index
u32