pub struct HostPortOwned<'a> { /* private fields */ }Expand description
A single graph->host port, owning its name (useful for iterator/filter use).
Implementations§
Source§impl<'a> HostPortOwned<'a>
impl<'a> HostPortOwned<'a>
pub fn name(&self) -> &str
pub fn resolved_type(&self) -> Option<&TypeExpr>
Sourcepub fn can_type_to<T: HostPollable>(&self) -> bool
pub fn can_type_to<T: HostPollable>(&self) -> bool
Alias for can_poll (terminology: “can this port be typed/popped as T?”).
pub fn can_poll<T: HostPollable>(&self) -> bool
pub fn is_type_expr(&self, ty: &TypeExpr) -> bool
pub fn try_pop<T: HostPollable>(&self) -> Result<Option<(u64, T)>, NodeError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HostPortOwned<'a>
impl<'a> RefUnwindSafe for HostPortOwned<'a>
impl<'a> Send for HostPortOwned<'a>
impl<'a> Sync for HostPortOwned<'a>
impl<'a> Unpin for HostPortOwned<'a>
impl<'a> UnwindSafe for HostPortOwned<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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