pub struct InboundCsc<'view>(/* private fields */);Expand description
Incoming adjacency — Postgres inbound CSC sections only.
Implementations§
Source§impl InboundCsc<'_>
impl InboundCsc<'_>
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Sourcepub fn predecessors(
&self,
target: u32,
) -> impl ExactSizeIterator<Item = u32> + '_
pub fn predecessors( &self, target: u32, ) -> impl ExactSizeIterator<Item = u32> + '_
Returns predecessor node ids for target.
§Performance
This method is O(1) to create and O(k) to yield k predecessors.
Trait Implementations§
Source§impl<'view> Clone for InboundCsc<'view>
impl<'view> Clone for InboundCsc<'view>
Source§fn clone(&self) -> InboundCsc<'view>
fn clone(&self) -> InboundCsc<'view>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'view> Copy for InboundCsc<'view>
Auto Trait Implementations§
impl<'view> Freeze for InboundCsc<'view>
impl<'view> RefUnwindSafe for InboundCsc<'view>
impl<'view> Send for InboundCsc<'view>
impl<'view> Sync for InboundCsc<'view>
impl<'view> Unpin for InboundCsc<'view>
impl<'view> UnsafeUnpin for InboundCsc<'view>
impl<'view> UnwindSafe for InboundCsc<'view>
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