Trait IntoSegment

Source
pub trait IntoSegment: Sealed {
    // Required methods
    fn into_segment(self, timing: impl Into<Timing>) -> Segment;
    fn over(self, timing: impl Into<Timing>) -> Segment;
}
Expand description

Conversion methods to create a Segment from a Element.

Required Methods§

Source

fn into_segment(self, timing: impl Into<Timing>) -> Segment

Creates a Segment from this element, spanning the given time range.

Source

fn over(self, timing: impl Into<Timing>) -> Segment

Creates a Segment from this element, spanning the given time range.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, T> IntoSegment for SegmentRef<'a, T>
where T: Element + Clone,

Source§

impl<T> IntoSegment for T
where T: Element,