Struct swifco_rs::systems::management::fences::FenceParams
source · [−]Expand description
Fence parameters
Fields
low: Option<u8>
Lower zone identifier (optional, must be smaller than :attr:high
)
high: u8
Higher zone identifier (must be larger than :attr:low
)
permeability: f64
Permeability of all edges connecting the given zones (must be between zero and one)
Implementations
Trait Implementations
sourceimpl Clone for FenceParams
impl Clone for FenceParams
sourcefn clone(&self) -> FenceParams
fn clone(&self) -> FenceParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FenceParams
impl Debug for FenceParams
sourceimpl IntoPy<Py<PyAny>> for FenceParams
impl IntoPy<Py<PyAny>> for FenceParams
sourceimpl PyClass for FenceParams
impl PyClass for FenceParams
type Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has #[pyclass(dict)]
or not.
type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has #[pyclass(weakref)]
or not.
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
. Read more
sourceimpl PyClassImpl for FenceParams
impl PyClassImpl for FenceParams
sourceconst IS_BASETYPE: bool
const IS_BASETYPE: bool
#[pyclass(subclass)]
sourceconst IS_SUBCLASS: bool
const IS_SUBCLASS: bool
#[pyclass(extends=…)]
sourceconst IS_MAPPING: bool
const IS_MAPPING: bool
#[pyclass(mapping)]
type Layout = PyCell<Self>
type Layout = PyCell<Self>
Layout
type BaseType = PyAny
type BaseType = PyAny
Base class
type ThreadChecker = ThreadCheckerStub<FenceParams>
type ThreadChecker = ThreadCheckerStub<FenceParams>
This handles following two situations: Read more
fn for_all_items(visitor: &mut dyn FnMut(&PyClassItems))
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
sourceimpl PyMethods<FenceParams> for PyClassImplCollector<FenceParams>
impl PyMethods<FenceParams> for PyClassImplCollector<FenceParams>
fn py_methods(self) -> &'static PyClassItems
sourceimpl PyTypeInfo for FenceParams
impl PyTypeInfo for FenceParams
type AsRefTarget = PyCell<Self>
type AsRefTarget = PyCell<Self>
Utility type to make Py::as_ref work.
sourcefn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
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.
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 RefUnwindSafe for FenceParams
impl Send for FenceParams
impl Sync for FenceParams
impl Unpin for FenceParams
impl UnwindSafe for FenceParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,
impl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,
impl<T> PyErrArguments for T where
T: IntoPy<Py<PyAny>> + Send + Sync,
impl<T> PyErrArguments for T where
T: IntoPy<Py<PyAny>> + Send + Sync,
pub fn arguments(self, py: Python<'_>) -> Py<PyAny>
pub fn arguments(self, py: Python<'_>) -> Py<PyAny>
Arguments for exception
impl<T> PyTypeObject for T where
T: PyTypeInfo,
impl<T> PyTypeObject for T where
T: PyTypeInfo,
pub fn type_object(py: Python<'_>) -> &PyType
pub fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more