pub struct MediaPermissions<'a> { /* private fields */ }
Expand description
Writer for an media permissions dictionary.
This struct is created by MediaClip::permissions
.
Implementations§
source§impl<'a> MediaPermissions<'a>
impl<'a> MediaPermissions<'a>
sourcepub fn temp_file(&mut self, tf: TempFileType) -> &mut Self
pub fn temp_file(&mut self, tf: TempFileType) -> &mut Self
Write the /TF
attribute to control permissions to write a temporary file.
Methods from Deref<Target = Dict<'a>>§
sourcepub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
pub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
Start writing a pair with an arbitrary value.
sourcepub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
pub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.
sourcepub fn pairs<'n, T: Primitive>(
&mut self,
pairs: impl IntoIterator<Item = (Name<'n>, T)>,
) -> &mut Self
pub fn pairs<'n, T: Primitive>( &mut self, pairs: impl IntoIterator<Item = (Name<'n>, T)>, ) -> &mut Self
Write a sequence of pairs with primitive values.
Trait Implementations§
source§impl<'a> Deref for MediaPermissions<'a>
impl<'a> Deref for MediaPermissions<'a>
source§impl<'a> DerefMut for MediaPermissions<'a>
impl<'a> DerefMut for MediaPermissions<'a>
source§impl<'a, 'any> Rewrite<'a> for MediaPermissions<'any>
impl<'a, 'any> Rewrite<'a> for MediaPermissions<'any>
source§type Output = MediaPermissions<'a>
type Output = MediaPermissions<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for MediaPermissions<'a>
impl<'a> RefUnwindSafe for MediaPermissions<'a>
impl<'a> Send for MediaPermissions<'a>
impl<'a> Sync for MediaPermissions<'a>
impl<'a> Unpin for MediaPermissions<'a>
impl<'a> !UnwindSafe for MediaPermissions<'a>
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