pub struct Breakpoints {
pub bs: Vec<N64>,
pub next: Option<Arc<dyn Fn(f64) -> (Option<f64>, Option<f64>) + Send + Sync>>,
}
Expand description
Sorted non-continuous or non-smooth points of a function.
Fields§
§bs: Vec<N64>
Finite vector of breakpoints.
next: Option<Arc<dyn Fn(f64) -> (Option<f64>, Option<f64>) + Send + Sync>>
Function which given a breakpoint returns the previous and next breakpoints (until there are none), respectively. The function is called to obtain the next breakpoint until the piecewise integrals converge to $0$ or the entire integral was integrated.
Implementations§
Trait Implementations§
Source§impl Clone for Breakpoints
impl Clone for Breakpoints
Source§fn clone(&self) -> Breakpoints
fn clone(&self) -> Breakpoints
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for Breakpoints
impl Default for Breakpoints
Source§impl PyClass for Breakpoints
impl PyClass for Breakpoints
Source§type Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has
#[pyclass(dict)]
or not.Source§type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has
#[pyclass(weakref)]
or not.Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.Source§impl PyClassDescriptors<Breakpoints> for PyClassImplCollector<Breakpoints>
impl PyClassDescriptors<Breakpoints> for PyClassImplCollector<Breakpoints>
fn py_class_descriptors(self) -> &'static [PyMethodDefType]
Source§impl PyClassImpl for Breakpoints
impl PyClassImpl for Breakpoints
Source§const DOC: &'static str = "Sorted non-continuous or non-smooth points of a function.\u{0}"
const DOC: &'static str = "Sorted non-continuous or non-smooth points of a function.\u{0}"
Class doc string
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§type Layout = PyCell<Breakpoints>
type Layout = PyCell<Breakpoints>
Layout
Source§type ThreadChecker = ThreadCheckerStub<Breakpoints>
type ThreadChecker = ThreadCheckerStub<Breakpoints>
This handles following two situations: Read more
fn for_each_method_def(visitor: &mut dyn FnMut(&[PyMethodDefType]))
fn get_new() -> Option<newfunc>
fn get_alloc() -> Option<allocfunc>
fn get_free() -> Option<freefunc>
fn for_each_proto_slot(visitor: &mut dyn FnMut(&[PyType_Slot]))
fn get_buffer() -> Option<&'static PyBufferProcs>
Source§impl PyClassNewImpl<Breakpoints> for PyClassImplCollector<Breakpoints>
impl PyClassNewImpl<Breakpoints> for PyClassImplCollector<Breakpoints>
Source§impl PyMethods<Breakpoints> for PyClassImplCollector<Breakpoints>
impl PyMethods<Breakpoints> for PyClassImplCollector<Breakpoints>
fn py_methods(self) -> &'static [PyMethodDefType]
Source§impl PyMethodsProtocolSlots<Breakpoints> for PyClassImplCollector<Breakpoints>
impl PyMethodsProtocolSlots<Breakpoints> for PyClassImplCollector<Breakpoints>
fn methods_protocol_slots(self) -> &'static [PyType_Slot]
Source§impl PyTypeInfo for Breakpoints
impl PyTypeInfo for Breakpoints
Source§type AsRefTarget = PyCell<Breakpoints>
type AsRefTarget = PyCell<Breakpoints>
Utility type to make Py::as_ref work.
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.Source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.Auto Trait Implementations§
impl Freeze for Breakpoints
impl !RefUnwindSafe for Breakpoints
impl Send for Breakpoints
impl Sync for Breakpoints
impl Unpin for Breakpoints
impl !UnwindSafe for Breakpoints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, P, C, D, U> DefaultGivenOnlineProblem<T, P, C, D> for U
impl<T, P, C, D, U> DefaultGivenOnlineProblem<T, P, C, D> for U
Source§impl<T, P, C, D, U> DefaultGivenProblem<T, P, C, D> for U
impl<T, P, C, D, U> DefaultGivenProblem<T, P, C, D> for U
Source§impl<'a, T> FromPyObject<'a> for T
impl<'a, T> FromPyObject<'a> for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeObject for Twhere
T: PyTypeInfo,
impl<T> PyTypeObject for Twhere
T: PyTypeInfo,
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.