pub trait SegmentRef: Send + Serialize + Deserialize {
    // Required method
    fn resolve(&self) -> Result<Segment>;
}
Expand description

A reference to a Segment.

This allows implementors to determine the best way to represent this in an pluggable manner. See the SimpleSegmentRef for a very basic implmentation.

Required Methods§

source

fn resolve(&self) -> Result<Segment>

Resolve this reference into an actual Segment.

Trait Implementations§

source§

impl<'typetag> Serialize for dyn SegmentRef + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn SegmentRef + Send + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn SegmentRef + Send + Sync + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn SegmentRef + Sync + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§