Struct bsp_pathfinding::Portal
source · [−]pub struct Portal<'a> { /* private fields */ }
Expand description
Represents a surface connecting two nodes
Implementations
sourceimpl<'a> Portal<'a>
impl<'a> Portal<'a>
sourcepub fn portal_ref(&self) -> PortalRef
pub fn portal_ref(&self) -> PortalRef
Get the portal’s portal ref.
pub fn dst(&self) -> NodeIndex
pub fn apply_margin(&self, margin: f32) -> Face
Methods from Deref<Target = PortalRef>
Trait Implementations
impl<'a> Copy for Portal<'a>
impl<'a> StructuralPartialEq for Portal<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Portal<'a>
impl<'a> Send for Portal<'a>
impl<'a> Sync for Portal<'a>
impl<'a> Unpin for Portal<'a>
impl<'a> UnwindSafe for Portal<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more