pub struct Surface {
pub point: Point,
pub layer: Layer,
pub topic: Topic,
}Fields§
§point: Point§layer: Layer§topic: TopicImplementations§
Source§impl Surface
impl Surface
pub fn with_topic(&self, topic: Topic) -> Self
pub fn with_layer(&self, layer: Layer) -> Self
Methods from Deref<Target = Point>§
pub fn parent(&self) -> Option<PointDef<Route, Seg>>
pub fn last_segment(&self) -> Option<Seg>
pub fn is_root(&self) -> bool
pub fn to_agent(&self) -> Agent
pub fn is_global(&self) -> bool
pub fn is_parent_of(&self, point: &Point) -> bool
pub fn is_parent(&self, child: &Point) -> Result<(), ()>
pub fn is_normalized(&self) -> bool
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 to_string_impl(&self, show_route: bool) -> String
pub fn postfix(&self) -> String
pub fn is_local_root(&self) -> bool
pub fn is_dir(&self) -> bool
pub fn is_dir(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Surface
impl<'de> Deserialize<'de> for Surface
Source§fn 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
Source§impl Into<Recipients> for Surface
impl Into<Recipients> for Surface
Source§fn into(self) -> Recipients
fn into(self) -> Recipients
Converts this type into the (usually inferred) input type.
Source§impl Into<ReflectedCore> for Surface
impl Into<ReflectedCore> for Surface
Source§fn into(self) -> ReflectedCore
fn into(self) -> ReflectedCore
Converts this type into the (usually inferred) input type.
Source§impl Into<SurfaceSelector> for Surface
impl Into<SurfaceSelector> for Surface
Source§fn into(self) -> SurfaceSelector
fn into(self) -> SurfaceSelector
Converts this type into the (usually inferred) input type.
Source§impl ToRecipients for Surface
impl ToRecipients for Surface
fn to_recipients(self) -> Recipients
Source§impl ToSubstance<Surface> for Substance
impl ToSubstance<Surface> for Substance
Source§impl TryFrom<ReflectedCore> for Surface
impl TryFrom<ReflectedCore> for Surface
Source§impl ValueMatcher<Surface> for SurfaceSelector
impl ValueMatcher<Surface> for SurfaceSelector
impl Eq for Surface
impl StructuralPartialEq for Surface
Auto Trait Implementations§
impl Freeze for Surface
impl RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnwindSafe for Surface
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn 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
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn 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