pub struct TextOrientation(/* private fields */);Expand description
A fixed screen angle, projected data direction or ordered tick-angle program.
Implementations§
Source§impl TextOrientation
impl TextOrientation
Sourcepub const fn fixed(value: TextRotation) -> TextOrientation
pub const fn fixed(value: TextRotation) -> TextOrientation
Use one fixed screen angle.
Sourcepub fn data_direction(from: DataPosition, to: DataPosition) -> TextOrientation
pub fn data_direction(from: DataPosition, to: DataPosition) -> TextOrientation
Follow the direction between two actual scientific references.
Sourcepub fn automatic_ticks(angles: Vec<TextRotation>) -> TextOrientation
pub fn automatic_ticks(angles: Vec<TextRotation>) -> TextOrientation
Try the retained angle order on an actual tick group.
Sourcepub const fn get_fixed_rotation(&self) -> Option<TextRotation>
pub const fn get_fixed_rotation(&self) -> Option<TextRotation>
Fixed screen rotation, absent for the other orientation programs.
Sourcepub const fn get_data_direction(&self) -> Option<(&DataPosition, &DataPosition)>
pub const fn get_data_direction(&self) -> Option<(&DataPosition, &DataPosition)>
Borrow the authored data-direction endpoints without projecting them.
Sourcepub fn get_automatic_angles(&self) -> Option<&[TextRotation]>
pub fn get_automatic_angles(&self) -> Option<&[TextRotation]>
Borrow the retained tick-angle order; an empty program remains present.
Trait Implementations§
Source§impl Clone for TextOrientation
impl Clone for TextOrientation
Source§fn clone(&self) -> TextOrientation
fn clone(&self) -> TextOrientation
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 moreSource§impl Debug for TextOrientation
impl Debug for TextOrientation
impl Eq for TextOrientation
Source§impl PartialEq for TextOrientation
impl PartialEq for TextOrientation
impl StructuralPartialEq for TextOrientation
Auto Trait Implementations§
impl Forget for TextOrientation
impl Freeze for TextOrientation
impl Move for TextOrientation
impl RefUnwindSafe for TextOrientation
impl Send for TextOrientation
impl Sync for TextOrientation
impl Unpin for TextOrientation
impl UnsafeUnpin for TextOrientation
impl UnwindSafe for TextOrientation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.