pub struct TimeCode(pub f64);Expand description
A time-coded double (C++ SdfTimeCode) — the value held by a
timecode-typed attribute (e.g. UsdMediaSpatialAudio.startTime). Unlike
a plain double, a TimeCode value is retimed by layer offsets during
composition.
This is the authored value type, distinct from a time-query parameter
(C++ UsdTimeCode, passed to Attribute::get_at). Read it with
Attribute::get::<sdf::TimeCode>() and author it with
set(sdf::TimeCode(..)); it round-trips through Value::TimeCode.
Tuple Fields§
§0: f64Implementations§
Trait Implementations§
impl Copy for TimeCode
Source§impl PartialOrd for TimeCode
impl PartialOrd for TimeCode
impl StructuralPartialEq for TimeCode
Auto Trait Implementations§
impl Freeze for TimeCode
impl RefUnwindSafe for TimeCode
impl Send for TimeCode
impl Sync for TimeCode
impl Unpin for TimeCode
impl UnsafeUnpin for TimeCode
impl UnwindSafe for TimeCode
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