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.
This overrides any angle and reflection settings previously applied.
Sourcepub fn angle(&mut self, angle: Rotation) -> &mut TransformationBuilder
pub fn angle(&mut self, angle: Rotation) -> &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§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 Freeze for TransformationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn 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>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which 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)
Converts
&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)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§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