StaticTerminalManager

Struct StaticTerminalManager 

Source
pub struct StaticTerminalManager<'id, Terminal, InnerNode, EdgeTag, ManagerData, const PAGE_SIZE: usize, const TAG_BITS: u32>(/* private fields */);

Trait Implementations§

Source§

impl<'id, Terminal, InnerNode, EdgeTag, ManagerData, const PAGE_SIZE: usize, const TAG_BITS: u32> TerminalManager<'id, InnerNode, EdgeTag, ManagerData, PAGE_SIZE, TAG_BITS> for StaticTerminalManager<'id, Terminal, InnerNode, EdgeTag, ManagerData, PAGE_SIZE, TAG_BITS>
where Terminal: Countable + Eq + Hash, InnerNode: NodeBase, EdgeTag: Tag,

Source§

type TerminalNode = Terminal

Source§

type TerminalNodeRef<'a> = Terminal where Self: 'a

Source§

type Iterator<'a> = StaticTerminalIterator<'id, InnerNode, EdgeTag, TAG_BITS> where Self: 'a, 'id: 'a

Source§

unsafe fn new_in(_slot: *mut Self)

Create a new TerminalManager in the given slot Read more
Source§

fn terminal_manager( edge: &Edge<'id, InnerNode, EdgeTag, TAG_BITS>, ) -> NonNull<Self>

Get a pointer to the terminal store
Source§

fn len(&self) -> usize

Get the number of currently stored terminals
Source§

fn deref_edge(&self, edge: &Edge<'id, InnerNode, EdgeTag, TAG_BITS>) -> Terminal

Dereference the given edge
Source§

fn clone_edge( edge: &Edge<'id, InnerNode, EdgeTag, TAG_BITS>, ) -> Edge<'id, InnerNode, EdgeTag, TAG_BITS>

Clone the given edge
Source§

fn drop_edge(edge: Edge<'id, InnerNode, EdgeTag, TAG_BITS>)

Drop the given edge
Source§

unsafe fn get( this: *const Self, terminal: Terminal, ) -> AllocResult<Edge<'id, InnerNode, EdgeTag, TAG_BITS>>

Add a terminal to this manager (if it does not already exist) and return an Edge pointing to it Read more
Source§

unsafe fn iter<'a>(this: *const Self) -> Self::Iterator<'a>
where Self: 'a,

Iterate over all terminals Read more
Source§

fn gc(&self) -> usize

Garbage collection: remove unused terminals
Source§

fn is_empty(&self) -> bool

Returns true iff currently no terminals are stored

Auto Trait Implementations§

§

impl<'id, Terminal, InnerNode, EdgeTag, ManagerData, const PAGE_SIZE: usize, const TAG_BITS: u32> Freeze for StaticTerminalManager<'id, Terminal, InnerNode, EdgeTag, ManagerData, PAGE_SIZE, TAG_BITS>

§

impl<'id, Terminal, InnerNode, EdgeTag, ManagerData, const PAGE_SIZE: usize, const TAG_BITS: u32> RefUnwindSafe for StaticTerminalManager<'id, Terminal, InnerNode, EdgeTag, ManagerData, PAGE_SIZE, TAG_BITS>
where Terminal: RefUnwindSafe, InnerNode: RefUnwindSafe, EdgeTag: RefUnwindSafe, ManagerData: RefUnwindSafe,

§

impl<'id, Terminal, InnerNode, EdgeTag, ManagerData, const PAGE_SIZE: usize, const TAG_BITS: u32> Send for StaticTerminalManager<'id, Terminal, InnerNode, EdgeTag, ManagerData, PAGE_SIZE, TAG_BITS>
where Terminal: Send, InnerNode: Send, EdgeTag: Send, ManagerData: Send,

§

impl<'id, Terminal, InnerNode, EdgeTag, ManagerData, const PAGE_SIZE: usize, const TAG_BITS: u32> Sync for StaticTerminalManager<'id, Terminal, InnerNode, EdgeTag, ManagerData, PAGE_SIZE, TAG_BITS>
where Terminal: Sync, InnerNode: Sync, EdgeTag: Sync, ManagerData: Sync,

§

impl<'id, Terminal, InnerNode, EdgeTag, ManagerData, const PAGE_SIZE: usize, const TAG_BITS: u32> Unpin for StaticTerminalManager<'id, Terminal, InnerNode, EdgeTag, ManagerData, PAGE_SIZE, TAG_BITS>
where Terminal: Unpin, InnerNode: Unpin, EdgeTag: Unpin, ManagerData: Unpin,

§

impl<'id, Terminal, InnerNode, EdgeTag, ManagerData, const PAGE_SIZE: usize, const TAG_BITS: u32> UnwindSafe for StaticTerminalManager<'id, Terminal, InnerNode, EdgeTag, ManagerData, PAGE_SIZE, TAG_BITS>
where Terminal: UnwindSafe, InnerNode: UnwindSafe, EdgeTag: UnwindSafe, ManagerData: UnwindSafe,

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.