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) -> Self
pub const fn fixed(value: TextRotation) -> Self
Use one fixed screen angle.
Sourcepub fn data_direction(from: DataPosition, to: DataPosition) -> Self
pub fn data_direction(from: DataPosition, to: DataPosition) -> Self
Follow the direction between two actual scientific references.
Sourcepub fn automatic_ticks(angles: Vec<TextRotation>) -> Self
pub fn automatic_ticks(angles: Vec<TextRotation>) -> Self
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§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 TextOrientationwhere
RawVecInner: Send,
impl Sync for TextOrientationwhere
RawVecInner: Sync,
impl Unpin for TextOrientation
impl UnsafeUnpin for TextOrientationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TextRotation>: UnsafeUnpin,
impl UnwindSafe for TextOrientationwhere
RawVecInner: UnwindSafe,
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.