pub struct VerifiedWalkablePassage { /* private fields */ }Implementations§
Source§impl VerifiedWalkablePassage
impl VerifiedWalkablePassage
pub fn try_new( a: WalkabilityRegionId, b: WalkabilityRegionId, portal: Option<ObjectId>, clear_width: LengthInterval, evidence: Evidence, ) -> Result<Self, WalkabilityError>
Sourcepub fn with_connector(
self,
connector: VerticalConnector,
) -> Result<Self, WalkabilityError>
pub fn with_connector( self, connector: VerticalConnector, ) -> Result<Self, WalkabilityError>
Marks this passage as a climb through a vertical connector.
§Errors
WalkabilityError::PortalConnectorPassage when the passage already
crosses a portal.
Sourcepub fn with_stretch(
self,
stretch: WalkableStretch,
) -> Result<Self, WalkabilityError>
pub fn with_stretch( self, stretch: WalkableStretch, ) -> Result<Self, WalkabilityError>
Marks this passage as a stretch of one surface no body of the
request’s width passes, located by stretch. The snapshot accepts
it only with an upper width bound below the request’s width.
§Errors
WalkabilityError::InvalidStretch when the passage crosses a
portal or climbs a connector.
Sourcepub fn stretch(&self) -> Option<&WalkableStretch>
pub fn stretch(&self) -> Option<&WalkableStretch>
Where this passage is too narrow inside a surface, when it is.
pub fn connector(&self) -> Option<&VerticalConnector>
pub fn endpoints(&self) -> (&WalkabilityRegionId, &WalkabilityRegionId)
pub fn portal(&self) -> Option<&ObjectId>
pub fn clear_width(&self) -> LengthInterval
pub fn evidence(&self) -> &Evidence
Trait Implementations§
Source§impl Clone for VerifiedWalkablePassage
impl Clone for VerifiedWalkablePassage
Source§impl Debug for VerifiedWalkablePassage
impl Debug for VerifiedWalkablePassage
Source§impl PartialEq for VerifiedWalkablePassage
impl PartialEq for VerifiedWalkablePassage
impl StructuralPartialEq for VerifiedWalkablePassage
Auto Trait Implementations§
impl Freeze for VerifiedWalkablePassage
impl RefUnwindSafe for VerifiedWalkablePassage
impl Send for VerifiedWalkablePassage
impl Sync for VerifiedWalkablePassage
impl Unpin for VerifiedWalkablePassage
impl UnsafeUnpin for VerifiedWalkablePassage
impl UnwindSafe for VerifiedWalkablePassage
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