pub type ConstraintFacingMode = ConstraintExactIdeal<FacingMode>;
Aliased Type§
enum ConstraintFacingMode {
Single(Option<FacingMode>),
ExactIdeal {
exact: Option<FacingMode>,
ideal: Option<FacingMode>,
},
}
Variants§
Implementations§
Source§impl ConstraintFacingMode
impl ConstraintFacingMode
pub fn to_jsvalue(&self) -> JsValue
Trait Implementations§
Source§impl From<FacingMode> for ConstraintFacingMode
impl From<FacingMode> for ConstraintFacingMode
Source§fn from(value: FacingMode) -> Self
fn from(value: FacingMode) -> Self
Converts to this type from the input type.