#[non_exhaustive]pub enum Endpoint<'a> {
Name(&'a str),
Index(i32),
Blob(&'a BlobId),
}Expand description
Selects a graph endpoint by name, exposed index or resolved token.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Name(&'a str)
Looks the endpoint up by blob name.
Index(i32)
Addresses the native blob index directly.
Blob(&'a BlobId)
Reuses a token bound to the loaded graph.
Trait Implementations§
impl<'a> Copy for Endpoint<'a>
Auto Trait Implementations§
impl<'a> !Send for Endpoint<'a>
impl<'a> !Sync for Endpoint<'a>
impl<'a> Freeze for Endpoint<'a>
impl<'a> RefUnwindSafe for Endpoint<'a>
impl<'a> Unpin for Endpoint<'a>
impl<'a> UnsafeUnpin for Endpoint<'a>
impl<'a> UnwindSafe for Endpoint<'a>
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