Skip to main content

Problem

Struct Problem 

Source
pub struct Problem<'cost> { /* private fields */ }

Implementations§

Source§

impl Problem<'_>

Source

pub unsafe fn SetParameterBlockConstant( self: Pin<&mut Self>, values: *const f64, )

Set parameter to be constant.

§Safety

values must point to already added parameter block.

Source

pub unsafe fn SetParameterBlockVariable(self: Pin<&mut Self>, values: *mut f64)

Set parameter to vary.

§Safety

values must point to already added parameter block.

Source

pub unsafe fn IsParameterBlockConstant(&self, values: *const f64) -> bool

Check if parameter is constant.

§Safety

values must point to already added parameter block.

Source

pub unsafe fn SetParameterLowerBound( self: Pin<&mut Self>, values: *mut f64, index: i32, lower_bound: f64, )

Set lower bound for a component of a parameter block.

§Safety

values must point to already added parameter block.

Source

pub unsafe fn SetParameterUpperBound( self: Pin<&mut Self>, values: *mut f64, index: i32, upper_bound: f64, )

Set upper bound for a component of a parameter block.

§Safety

values must point to already added parameter block.

Source

pub fn NumParameterBlocks(&self) -> i32

Source

pub fn NumParameters(&self) -> i32

Source

pub fn NumResidualBlocks(&self) -> i32

Source

pub fn NumResiduals(&self) -> i32

Source

pub unsafe fn ParameterBlockSize(&self, values: *const f64) -> i32

Number of components of the parameter.

§Safety

values must point to already added parameter block.

Source

pub unsafe fn HasParameterBlock(&self, values: *const f64) -> bool

Checks if problem has a given parameter.

§Safety

It should be safe to call this function with any pointer.

Trait Implementations§

Source§

impl<'cost> ExternType for Problem<'cost>

Source§

type Kind = Opaque

Source§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

impl<'cost> UniquePtrTarget for Problem<'cost>

Auto Trait Implementations§

§

impl<'cost> !Freeze for Problem<'cost>

§

impl<'cost> RefUnwindSafe for Problem<'cost>

§

impl<'cost> !Send for Problem<'cost>

§

impl<'cost> !Sync for Problem<'cost>

§

impl<'cost> !Unpin for Problem<'cost>

§

impl<'cost> UnwindSafe for Problem<'cost>

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>,

Source§

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>,

Source§

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.