pub struct SparseScalar<T: ValueType> { /* private fields */ }
Implementations§
source§impl<T: ValueType> SparseScalar<T>
impl<T: ValueType> SparseScalar<T>
source§impl SparseScalar<bool>
impl SparseScalar<bool>
pub fn from_value( context: &Arc<Context>, value: bool ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<i8>
impl SparseScalar<i8>
pub fn from_value( context: &Arc<Context>, value: i8 ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<i16>
impl SparseScalar<i16>
pub fn from_value( context: &Arc<Context>, value: i16 ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<i32>
impl SparseScalar<i32>
pub fn from_value( context: &Arc<Context>, value: i32 ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<i64>
impl SparseScalar<i64>
pub fn from_value( context: &Arc<Context>, value: i64 ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<u8>
impl SparseScalar<u8>
pub fn from_value( context: &Arc<Context>, value: u8 ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<u16>
impl SparseScalar<u16>
pub fn from_value( context: &Arc<Context>, value: u16 ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<u32>
impl SparseScalar<u32>
pub fn from_value( context: &Arc<Context>, value: u32 ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<u64>
impl SparseScalar<u64>
pub fn from_value( context: &Arc<Context>, value: u64 ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<f32>
impl SparseScalar<f32>
pub fn from_value( context: &Arc<Context>, value: f32 ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<f64>
impl SparseScalar<f64>
pub fn from_value( context: &Arc<Context>, value: f64 ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<isize>
impl SparseScalar<isize>
pub fn from_value( context: &Arc<Context>, value: isize ) -> Result<Self, SparseLinearAlgebraError>
source§impl SparseScalar<usize>
impl SparseScalar<usize>
pub fn from_value( context: &Arc<Context>, value: usize ) -> Result<Self, SparseLinearAlgebraError>
Trait Implementations§
source§impl<T: ValueType> Clone for SparseScalar<T>
impl<T: ValueType> Clone for SparseScalar<T>
source§impl<T: ValueType> Collection for SparseScalar<T>
impl<T: ValueType> Collection for SparseScalar<T>
fn clear(&mut self) -> Result<(), SparseLinearAlgebraError>
fn number_of_stored_elements( &self ) -> Result<ElementIndex, SparseLinearAlgebraError>
source§impl Display for SparseScalar<bool>
impl Display for SparseScalar<bool>
source§impl Display for SparseScalar<f32>
impl Display for SparseScalar<f32>
source§impl Display for SparseScalar<f64>
impl Display for SparseScalar<f64>
source§impl Display for SparseScalar<i16>
impl Display for SparseScalar<i16>
source§impl Display for SparseScalar<i32>
impl Display for SparseScalar<i32>
source§impl Display for SparseScalar<i64>
impl Display for SparseScalar<i64>
source§impl Display for SparseScalar<i8>
impl Display for SparseScalar<i8>
source§impl Display for SparseScalar<isize>
impl Display for SparseScalar<isize>
source§impl Display for SparseScalar<u16>
impl Display for SparseScalar<u16>
source§impl Display for SparseScalar<u32>
impl Display for SparseScalar<u32>
source§impl Display for SparseScalar<u64>
impl Display for SparseScalar<u64>
source§impl Display for SparseScalar<u8>
impl Display for SparseScalar<u8>
source§impl Display for SparseScalar<usize>
impl Display for SparseScalar<usize>
source§impl<T: ValueType> Drop for SparseScalar<T>
impl<T: ValueType> Drop for SparseScalar<T>
source§impl<T: ValueType> GetContext for SparseScalar<T>
impl<T: ValueType> GetContext for SparseScalar<T>
source§impl GetScalarValue<bool> for SparseScalar<bool>
impl GetScalarValue<bool> for SparseScalar<bool>
fn get_value(&self) -> Result<Option<bool>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<bool, SparseLinearAlgebraError>
source§impl GetScalarValue<f32> for SparseScalar<f32>
impl GetScalarValue<f32> for SparseScalar<f32>
fn get_value(&self) -> Result<Option<f32>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<f32, SparseLinearAlgebraError>
source§impl GetScalarValue<f64> for SparseScalar<f64>
impl GetScalarValue<f64> for SparseScalar<f64>
fn get_value(&self) -> Result<Option<f64>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<f64, SparseLinearAlgebraError>
source§impl GetScalarValue<i16> for SparseScalar<i16>
impl GetScalarValue<i16> for SparseScalar<i16>
fn get_value(&self) -> Result<Option<i16>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<i16, SparseLinearAlgebraError>
source§impl GetScalarValue<i32> for SparseScalar<i32>
impl GetScalarValue<i32> for SparseScalar<i32>
fn get_value(&self) -> Result<Option<i32>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<i32, SparseLinearAlgebraError>
source§impl GetScalarValue<i64> for SparseScalar<i64>
impl GetScalarValue<i64> for SparseScalar<i64>
fn get_value(&self) -> Result<Option<i64>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<i64, SparseLinearAlgebraError>
source§impl GetScalarValue<i8> for SparseScalar<i8>
impl GetScalarValue<i8> for SparseScalar<i8>
fn get_value(&self) -> Result<Option<i8>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<i8, SparseLinearAlgebraError>
source§impl GetScalarValue<isize> for SparseScalar<isize>
impl GetScalarValue<isize> for SparseScalar<isize>
fn get_value(&self) -> Result<Option<isize>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<isize, SparseLinearAlgebraError>
source§impl GetScalarValue<u16> for SparseScalar<u16>
impl GetScalarValue<u16> for SparseScalar<u16>
fn get_value(&self) -> Result<Option<u16>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<u16, SparseLinearAlgebraError>
source§impl GetScalarValue<u32> for SparseScalar<u32>
impl GetScalarValue<u32> for SparseScalar<u32>
fn get_value(&self) -> Result<Option<u32>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<u32, SparseLinearAlgebraError>
source§impl GetScalarValue<u64> for SparseScalar<u64>
impl GetScalarValue<u64> for SparseScalar<u64>
fn get_value(&self) -> Result<Option<u64>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<u64, SparseLinearAlgebraError>
source§impl GetScalarValue<u8> for SparseScalar<u8>
impl GetScalarValue<u8> for SparseScalar<u8>
fn get_value(&self) -> Result<Option<u8>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<u8, SparseLinearAlgebraError>
source§impl GetScalarValue<usize> for SparseScalar<usize>
impl GetScalarValue<usize> for SparseScalar<usize>
fn get_value(&self) -> Result<Option<usize>, SparseLinearAlgebraError>
fn get_value_or_default(&self) -> Result<usize, SparseLinearAlgebraError>
source§impl<T: ValueType> GraphblasSparseScalarTrait for SparseScalar<T>
impl<T: ValueType> GraphblasSparseScalarTrait for SparseScalar<T>
unsafe fn graphblas_scalar(&self) -> GrB_Scalar
unsafe fn graphblas_scalar_ref(&self) -> &GrB_Scalar
unsafe fn graphblas_scalar_mut_ref(&mut self) -> &mut GrB_Scalar
source§impl SetScalarValue<bool> for SparseScalar<bool>
impl SetScalarValue<bool> for SparseScalar<bool>
source§impl SetScalarValue<f32> for SparseScalar<f32>
impl SetScalarValue<f32> for SparseScalar<f32>
source§impl SetScalarValue<f64> for SparseScalar<f64>
impl SetScalarValue<f64> for SparseScalar<f64>
source§impl SetScalarValue<i16> for SparseScalar<i16>
impl SetScalarValue<i16> for SparseScalar<i16>
source§impl SetScalarValue<i32> for SparseScalar<i32>
impl SetScalarValue<i32> for SparseScalar<i32>
source§impl SetScalarValue<i64> for SparseScalar<i64>
impl SetScalarValue<i64> for SparseScalar<i64>
source§impl SetScalarValue<i8> for SparseScalar<i8>
impl SetScalarValue<i8> for SparseScalar<i8>
source§impl SetScalarValue<isize> for SparseScalar<isize>
impl SetScalarValue<isize> for SparseScalar<isize>
source§impl SetScalarValue<u16> for SparseScalar<u16>
impl SetScalarValue<u16> for SparseScalar<u16>
source§impl SetScalarValue<u32> for SparseScalar<u32>
impl SetScalarValue<u32> for SparseScalar<u32>
source§impl SetScalarValue<u64> for SparseScalar<u64>
impl SetScalarValue<u64> for SparseScalar<u64>
source§impl SetScalarValue<u8> for SparseScalar<u8>
impl SetScalarValue<u8> for SparseScalar<u8>
source§impl SetScalarValue<usize> for SparseScalar<usize>
impl SetScalarValue<usize> for SparseScalar<usize>
impl<T: ValueType> Send for SparseScalar<T>
impl<T: ValueType> Sync for SparseScalar<T>
Auto Trait Implementations§
impl<T> Freeze for SparseScalar<T>
impl<T> RefUnwindSafe for SparseScalar<T>where
T: RefUnwindSafe,
impl<T> Unpin for SparseScalar<T>where
T: Unpin,
impl<T> UnwindSafe for SparseScalar<T>where
T: UnwindSafe,
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