Struct py_raphtory::vertex::PyPathFromVertex
source · pub struct PyPathFromVertex { /* private fields */ }Implementations§
source§impl PyPathFromVertex
impl PyPathFromVertex
pub fn start(&self) -> Option<i64>
pub fn end(&self) -> Option<i64>
sourcepub fn window_size(&self) -> Option<u64>
pub fn window_size(&self) -> Option<u64>
Returns the size of the window covered by this view
Returns: int: the size of the window
pub fn window( &self, t_start: Option<&PyAny>, t_end: Option<&PyAny> ) -> PyResult<Self>
sourcepub fn at(&self, end: &PyAny) -> PyResult<Self>
pub fn at(&self, end: &PyAny) -> PyResult<Self>
Create a view of the vertex including all events at t.
Arguments: end (int): The time of the window.
Returns:
A PyVertex object.
pub fn default_layer(&self) -> Self
Trait Implementations§
source§impl<G: GraphViewOps + IntoDynamic> From<PathFromVertex<G>> for PyPathFromVertex
impl<G: GraphViewOps + IntoDynamic> From<PathFromVertex<G>> for PyPathFromVertex
source§fn from(value: PathFromVertex<G>) -> Self
fn from(value: PathFromVertex<G>) -> Self
Converts to this type from the input type.
source§impl PyClass for PyPathFromVertex
impl PyClass for PyPathFromVertex
source§impl PyClassImpl for PyPathFromVertex
impl PyClassImpl for PyPathFromVertex
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§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type Layout = PyCell<PyPathFromVertex>
type Layout = PyCell<PyPathFromVertex>
Layout
§type ThreadChecker = ThreadCheckerStub<PyPathFromVertex>
type ThreadChecker = ThreadCheckerStub<PyPathFromVertex>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyPathFromVertex
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§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.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyPathFromVertex
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyPathFromVertex
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyPathFromVertex
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyPathFromVertex
source§impl PyTypeInfo for PyPathFromVertex
impl PyTypeInfo for PyPathFromVertex
§type AsRefTarget = PyCell<PyPathFromVertex>
type AsRefTarget = PyCell<PyPathFromVertex>
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
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
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 !RefUnwindSafe for PyPathFromVertex
impl Send for PyPathFromVertex
impl Sync for PyPathFromVertex
impl Unpin for PyPathFromVertex
impl !UnwindSafe for PyPathFromVertex
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