pub struct CollectionClipV1 { /* private fields */ }Expand description
One declared logical-to-physical take binding.
Implementations§
Source§impl CollectionClipV1
impl CollectionClipV1
Sourcepub fn new(
id: CollectionLogicalIdV1,
source: CollectionSourceKeyV1,
take_index: u32,
take_name: impl Into<String>,
) -> Result<Self, CollectionManifestError>
pub fn new( id: CollectionLogicalIdV1, source: CollectionSourceKeyV1, take_index: u32, take_name: impl Into<String>, ) -> Result<Self, CollectionManifestError>
Construct one exact source-local take witness.
§Errors
Returns CollectionManifestError::InvalidText when the exact
expected embedded take name is empty or exceeds its V1 byte limit.
Sourcepub fn id(&self) -> &CollectionLogicalIdV1
pub fn id(&self) -> &CollectionLogicalIdV1
Durable logical id.
Sourcepub fn source(&self) -> &CollectionSourceKeyV1
pub fn source(&self) -> &CollectionSourceKeyV1
Declared source key.
Sourcepub const fn take_index(&self) -> u32
pub const fn take_index(&self) -> u32
Zero-based source-local take index.
Sourcepub fn take_name(&self) -> &str
pub fn take_name(&self) -> &str
Exact expected embedded take name at Self::take_index.
Trait Implementations§
Source§impl Clone for CollectionClipV1
impl Clone for CollectionClipV1
Source§fn clone(&self) -> CollectionClipV1
fn clone(&self) -> CollectionClipV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CollectionClipV1
impl Debug for CollectionClipV1
impl Eq for CollectionClipV1
Source§impl PartialEq for CollectionClipV1
impl PartialEq for CollectionClipV1
Source§impl Serialize for CollectionClipV1
impl Serialize for CollectionClipV1
impl StructuralPartialEq for CollectionClipV1
Auto Trait Implementations§
impl Freeze for CollectionClipV1
impl RefUnwindSafe for CollectionClipV1
impl Send for CollectionClipV1
impl Sync for CollectionClipV1
impl Unpin for CollectionClipV1
impl UnsafeUnpin for CollectionClipV1
impl UnwindSafe for CollectionClipV1
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