Struct cosmic_space::point::PointDef
source · pub struct PointDef<Route, Seg> {
pub route: Route,
pub segments: Vec<Seg>,
}
Fields
route: Route
segments: Vec<Seg>
Implementations
sourceimpl PointDef<RouteSegVar, PointSegVar>
impl PointDef<RouteSegVar, PointSegVar>
sourceimpl PointDef<RouteSeg, PointSeg>
impl PointDef<RouteSeg, PointSeg>
pub fn to_agent(&self) -> Agent
pub fn is_global(&self) -> bool
pub fn is_parent_of(&self, point: &Point) -> bool
pub fn central() -> Self
pub fn global_executor() -> Self
pub fn global_logger() -> Self
pub fn global_registry() -> Self
pub fn local_portal() -> Self
pub fn local_hypergate() -> Self
pub fn local_endpoint() -> Self
pub fn remote_endpoint() -> Self
pub fn hyperuser() -> Self
pub fn anonymous() -> Self
pub fn normalize(self) -> Result<Point, SpaceErr>
pub fn is_parent(&self, child: &Point) -> Result<(), ()>
pub fn is_normalized(&self) -> bool
pub fn to_bundle(self) -> Result<Point, SpaceErr>
pub fn has_bundle(&self) -> bool
pub fn to_safe_filename(&self) -> String
pub fn has_filesystem(&self) -> bool
pub fn is_artifact_bundle_part(&self) -> bool
pub fn is_artifact(&self) -> bool
pub fn is_artifact_bundle(&self) -> bool
pub fn pop(&self) -> Self
pub fn push<S: ToString>(&self, segment: S) -> Result<Self, SpaceErr>
pub fn push_file(&self, segment: String) -> Result<Self, SpaceErr>
pub fn push_segment(&self, segment: PointSeg) -> Result<Self, SpaceErr>
pub fn filepath(&self) -> Option<String>
pub fn is_filesystem_ref(&self) -> bool
pub fn truncate(self, kind: PointSegKind) -> Result<Point, SpaceErr>
sourceimpl<Route, Seg> PointDef<Route, Seg>where
Route: ToString,
Seg: PointSegQuery + ToString,
impl<Route, Seg> PointDef<Route, Seg>where
Route: ToString,
Seg: PointSegQuery + ToString,
sourceimpl PointDef<RouteSeg, PointSeg>
impl PointDef<RouteSeg, PointSeg>
pub fn root() -> Self
pub fn root_with_route(route: RouteSeg) -> Self
pub fn is_local_root(&self) -> bool
sourceimpl PointDef<RouteSegVar, PointSegVar>
impl PointDef<RouteSegVar, PointSegVar>
Trait Implementations
sourceimpl<'de, Route, Seg> Deserialize<'de> for PointDef<Route, Seg>where
Route: Deserialize<'de>,
Seg: Deserialize<'de>,
impl<'de, Route, Seg> Deserialize<'de> for PointDef<Route, Seg>where
Route: Deserialize<'de>,
Seg: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<Route: PartialEq, Seg: PartialEq> PartialEq<PointDef<Route, Seg>> for PointDef<Route, Seg>
impl<Route: PartialEq, Seg: PartialEq> PartialEq<PointDef<Route, Seg>> for PointDef<Route, Seg>
sourceimpl ToResolved<PointDef<RouteSeg, PointSegCtx>> for PointVar
impl ToResolved<PointDef<RouteSeg, PointSegCtx>> for PointVar
sourceimpl<Route, Seg> ToString for PointDef<Route, Seg>where
Route: RouteSegQuery + ToString,
Seg: PointSegQuery + ToString,
impl<Route, Seg> ToString for PointDef<Route, Seg>where
Route: RouteSegQuery + ToString,
Seg: PointSegQuery + ToString,
sourceimpl ToSubstance<PointDef<RouteSeg, PointSeg>> for Substance
impl ToSubstance<PointDef<RouteSeg, PointSeg>> for Substance
fn to_substance(self) -> Result<Point, SpaceErr>
fn to_substance_ref(&self) -> Result<&Point, SpaceErr>
impl<Route: Eq, Seg: Eq> Eq for PointDef<Route, Seg>
impl<Route, Seg> StructuralEq for PointDef<Route, Seg>
impl<Route, Seg> StructuralPartialEq for PointDef<Route, Seg>
Auto Trait Implementations
impl<Route, Seg> RefUnwindSafe for PointDef<Route, Seg>where
Route: RefUnwindSafe,
Seg: RefUnwindSafe,
impl<Route, Seg> Send for PointDef<Route, Seg>where
Route: Send,
Seg: Send,
impl<Route, Seg> Sync for PointDef<Route, Seg>where
Route: Sync,
Seg: Sync,
impl<Route, Seg> Unpin for PointDef<Route, Seg>where
Route: Unpin,
Seg: Unpin,
impl<Route, Seg> UnwindSafe for PointDef<Route, Seg>where
Route: UnwindSafe,
Seg: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
sourcefn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
sourceimpl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
sourcefn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more