pub struct ArrayContainer<T, const N: usize>where
T: Object,{
pub array: [T; N],
}Fields§
§array: [T; N]Trait Implementations§
Source§impl<T, const N: usize> Clone for ArrayContainer<T, N>
impl<T, const N: usize> Clone for ArrayContainer<T, N>
Source§fn clone(&self) -> ArrayContainer<T, N>
fn clone(&self) -> ArrayContainer<T, N>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<T, const N: usize> Debug for ArrayContainer<T, N>
impl<T, const N: usize> Debug for ArrayContainer<T, N>
Source§impl<T, const N: usize> Hash for ArrayContainer<T, N>
impl<T, const N: usize> Hash for ArrayContainer<T, N>
Source§impl<T: OpenscadCodegen, const N: usize> OpenscadCodegen for ArrayContainer<T, N>
impl<T: OpenscadCodegen, const N: usize> OpenscadCodegen for ArrayContainer<T, N>
Source§impl<T, const N: usize> Ord for ArrayContainer<T, N>
impl<T, const N: usize> Ord for ArrayContainer<T, N>
Source§fn cmp(&self, other: &ArrayContainer<T, N>) -> Ordering
fn cmp(&self, other: &ArrayContainer<T, N>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<T, const N: usize> PartialEq for ArrayContainer<T, N>
impl<T, const N: usize> PartialEq for ArrayContainer<T, N>
Source§fn eq(&self, other: &ArrayContainer<T, N>) -> bool
fn eq(&self, other: &ArrayContainer<T, N>) -> bool
self and other values to be equal, and is used by ==.Source§impl<T, const N: usize> PartialOrd for ArrayContainer<T, N>where
T: PartialOrd + Object,
impl<T, const N: usize> PartialOrd for ArrayContainer<T, N>where
T: PartialOrd + Object,
impl<T, const N: usize> Copy for ArrayContainer<T, N>
impl<T, const N: usize> Eq for ArrayContainer<T, N>
impl<T, const N: usize> StructuralPartialEq for ArrayContainer<T, N>where
T: Object,
Auto Trait Implementations§
impl<T, const N: usize> Freeze for ArrayContainer<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for ArrayContainer<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for ArrayContainer<T, N>where
T: Send,
impl<T, const N: usize> Sync for ArrayContainer<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for ArrayContainer<T, N>where
T: Unpin,
impl<T, const N: usize> UnsafeUnpin for ArrayContainer<T, N>where
T: UnsafeUnpin,
impl<T, const N: usize> UnwindSafe for ArrayContainer<T, N>where
T: 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
Source§impl<T> CenterObject for Twhere
T: Object,
impl<T> CenterObject for Twhere
T: Object,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ColorObject for Twhere
T: Object,
impl<T> ColorObject for Twhere
T: Object,
fn colored(self, color: impl ColorFormat) -> Colored<T>
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> DifferenceObject for Twhere
T: Object,
impl<T> DifferenceObject for Twhere
T: Object,
fn difference<Other>(self, other: Other) -> Difference<Self, Other>where
Other: Object,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> ExportObject for Twhere
T: OpenscadCodegen,
impl<T> ExportObject for Twhere
T: OpenscadCodegen,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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> IntersectionObject for Twhere
T: Object,
impl<T> IntersectionObject for Twhere
T: Object,
fn intersection<Other>(self, other: Other) -> Intersection<Self, Other>where
Other: Object,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
Source§impl<T> LinearPatternObject for T
impl<T> LinearPatternObject for T
Source§impl<T> MirrorObject for Twhere
T: Object,
impl<T> MirrorObject for Twhere
T: Object,
fn mirror<T>(self, x: T, y: T, z: T) -> Mirror<Self>
fn mirror_x<T>(self, x: T) -> Mirror<Self>
fn mirror_y<T>(self, y: T) -> Mirror<Self>
fn mirror_z<T>(self, z: T) -> Mirror<Self>
fn mirror_xy<T>(self, x: T, y: T) -> Mirror<Self>
fn mirror_xz<T>(self, x: T, z: T) -> Mirror<Self>
fn mirror_yz<T>(self, y: T, z: T) -> Mirror<Self>
§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);Source§impl<T> ProjectionObject<T> for Twhere
T: Object,
impl<T> ProjectionObject<T> for Twhere
T: Object,
fn project(self) -> Projection<Self>
Source§impl<T> RotateObject for Twhere
T: Object,
impl<T> RotateObject for Twhere
T: Object,
fn rotate<T>(self, x: T, y: T, z: T) -> Rotate<Self>
fn rotate_x<T>(self, x: T) -> Rotate<Self>
fn rotate_y<T>(self, y: T) -> Rotate<Self>
fn rotate_z<T>(self, z: T) -> Rotate<Self>
fn rotate_xy<T>(self, x: T, y: T) -> Rotate<Self>
fn rotate_yz<T>(self, y: T, z: T) -> Rotate<Self>
fn rotate_xz<T>(self, x: T, z: T) -> Rotate<Self>
Source§impl<T> ScaleObject for Twhere
T: Object,
impl<T> ScaleObject for Twhere
T: Object,
fn scale_uniform<T>(self, scaler: T) -> Scale<Self>
fn scale<T>(self, x: T, y: T, z: T) -> Scale<Self>
fn scale_x<T>(self, x: T) -> Scale<Self>
fn scale_y<T>(self, y: T) -> Scale<Self>
fn scale_z<T>(self, z: T) -> Scale<Self>
fn scale_xy<T>(self, x: T, y: T) -> Scale<Self>
fn scale_xz<T>(self, x: T, z: T) -> Scale<Self>
fn scale_yz<T>(self, y: T, z: T) -> Scale<Self>
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
MaybeRef].