Struct rea_rs::misc_types::TimeRange
source · [−]pub struct TimeRange<'a> { /* private fields */ }
Implementations
sourceimpl<'a> TimeRange<'a>
impl<'a> TimeRange<'a>
pub fn new(project: &'a Project, kind: TimeRangeKind) -> Self
pub fn get_kind(&self) -> TimeRangeKind
pub fn get(&self) -> (Position, Position)
pub fn set(&self, start: Position, end: Position)
pub fn get_start(&self) -> Position
pub fn get_end(&self) -> Position
pub fn set_start(&self, start: Position)
pub fn set_end(&self, end: Position)
pub fn get_length(&self) -> Duration
pub fn set_length(&self, length: Duration)
Trait Implementations
sourceimpl<'a> PartialEq<TimeRange<'a>> for TimeRange<'a>
impl<'a> PartialEq<TimeRange<'a>> for TimeRange<'a>
impl<'a> StructuralPartialEq for TimeRange<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TimeRange<'a>
impl<'a> !Send for TimeRange<'a>
impl<'a> !Sync for TimeRange<'a>
impl<'a> Unpin for TimeRange<'a>
impl<'a> UnwindSafe for TimeRange<'a>
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more