pub enum PanBackground {
Static,
Travel,
}Expand description
Whether a camera_pan treats the background as a fixed backdrop the scenes
slide across, or as part of each scene, travelling with it.
Variants§
Static
The outgoing scene’s background stays put while both foregrounds slide over it. Keeps a shared ambience continuous, so the cut is invisible — this is the default because it is what makes a multi-beat video read as one shot.
Travel
Each scene carries its own background, and both travel with their foreground. Use this when the beats are meant to look like different places rather than one continuous space.
Trait Implementations§
Source§impl Clone for PanBackground
impl Clone for PanBackground
Source§fn clone(&self) -> PanBackground
fn clone(&self) -> PanBackground
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 moreimpl Copy for PanBackground
Source§impl Debug for PanBackground
impl Debug for PanBackground
Source§impl Default for PanBackground
impl Default for PanBackground
Source§fn default() -> PanBackground
fn default() -> PanBackground
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PanBackground
impl<'de> Deserialize<'de> for PanBackground
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PanBackground
Source§impl JsonSchema for PanBackground
impl JsonSchema for PanBackground
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PanBackground
impl PartialEq for PanBackground
Source§impl Serialize for PanBackground
impl Serialize for PanBackground
impl StructuralPartialEq for PanBackground
Auto Trait Implementations§
impl Freeze for PanBackground
impl RefUnwindSafe for PanBackground
impl Send for PanBackground
impl Sync for PanBackground
impl Unpin for PanBackground
impl UnsafeUnpin for PanBackground
impl UnwindSafe for PanBackground
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more