Struct substrate::geometry::transform::TransformationBuilder
source · pub struct TransformationBuilder { /* private fields */ }
Expand description
A builder for creating transformations from translations and Orientation
s.
Implementations§
source§impl TransformationBuilder
impl TransformationBuilder
sourcepub fn point(&mut self, point: impl Into<Point>) -> &mut TransformationBuilder
pub fn point(&mut self, point: impl Into<Point>) -> &mut TransformationBuilder
Specifies the x-y translation encoded by the transformation.
sourcepub fn orientation(
&mut self,
o: impl Into<Orientation>
) -> &mut TransformationBuilder
pub fn orientation( &mut self, o: impl Into<Orientation> ) -> &mut TransformationBuilder
Specifies the Orientation
applied by this transformation.
sourcepub fn angle(&mut self, angle: f64) -> &mut TransformationBuilder
pub fn angle(&mut self, angle: f64) -> &mut TransformationBuilder
Specifies the angle of rotation encoded by this transformation.
sourcepub fn reflect_vert(&mut self, reflect_vert: bool) -> &mut TransformationBuilder
pub fn reflect_vert(&mut self, reflect_vert: bool) -> &mut TransformationBuilder
Specifies whether the transformation results in a vertical reflection.
sourcepub fn build(&mut self) -> Transformation
pub fn build(&mut self) -> Transformation
Builds a Transformation
from the specified parameters.
Trait Implementations§
source§impl Clone for TransformationBuilder
impl Clone for TransformationBuilder
source§fn clone(&self) -> TransformationBuilder
fn clone(&self) -> TransformationBuilder
Returns a copy of the value. Read more
1.0.0 · 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 TransformationBuilder
impl Debug for TransformationBuilder
source§impl Default for TransformationBuilder
impl Default for TransformationBuilder
source§fn default() -> TransformationBuilder
fn default() -> TransformationBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransformationBuilder
impl<'de> Deserialize<'de> for TransformationBuilder
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TransformationBuilder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TransformationBuilder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TransformationBuilder
impl PartialEq for TransformationBuilder
source§fn eq(&self, other: &TransformationBuilder) -> bool
fn eq(&self, other: &TransformationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransformationBuilder
impl Serialize for TransformationBuilder
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TransformationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TransformationBuilder
impl Send for TransformationBuilder
impl Sync for TransformationBuilder
impl Unpin for TransformationBuilder
impl UnwindSafe for TransformationBuilder
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, U> CustomHardwareType<Flipped<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<Flipped<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &Flipped<T>) -> U
fn from_layout_type(other: &Flipped<T>) -> U
Creates this layout type from another layout type.
source§impl<T, U> CustomHardwareType<InOut<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<InOut<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &InOut<T>) -> U
fn from_layout_type(other: &InOut<T>) -> U
Creates this layout type from another layout type.
source§impl<T, U> CustomHardwareType<Input<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<Input<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &Input<T>) -> U
fn from_layout_type(other: &Input<T>) -> U
Creates this layout type from another layout type.
source§impl<T, U> CustomHardwareType<Output<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<Output<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &Output<T>) -> U
fn from_layout_type(other: &Output<T>) -> U
Creates this layout type from another layout type.
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request