pub struct AnnotationOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> AnnotationOptionsBuilder<S>
impl<S: State> AnnotationOptionsBuilder<S>
Sourcepub fn build(self) -> AnnotationOptionswhere
S: IsComplete,
pub fn build(self) -> AnnotationOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn text(
self,
value: AnnotationTextOptions,
) -> AnnotationOptionsBuilder<SetText<S>>where
S::Text: IsUnset,
pub fn text(
self,
value: AnnotationTextOptions,
) -> AnnotationOptionsBuilder<SetText<S>>where
S::Text: IsUnset,
Sourcepub fn maybe_text(
self,
value: Option<AnnotationTextOptions>,
) -> AnnotationOptionsBuilder<SetText<S>>where
S::Text: IsUnset,
pub fn maybe_text(
self,
value: Option<AnnotationTextOptions>,
) -> AnnotationOptionsBuilder<SetText<S>>where
S::Text: IsUnset,
Sourcepub fn line_ends(
self,
value: AnnotationLineEndOptions,
) -> AnnotationOptionsBuilder<SetLineEnds<S>>where
S::LineEnds: IsUnset,
pub fn line_ends(
self,
value: AnnotationLineEndOptions,
) -> AnnotationOptionsBuilder<SetLineEnds<S>>where
S::LineEnds: IsUnset,
Sourcepub fn maybe_line_ends(
self,
value: Option<AnnotationLineEndOptions>,
) -> AnnotationOptionsBuilder<SetLineEnds<S>>where
S::LineEnds: IsUnset,
pub fn maybe_line_ends(
self,
value: Option<AnnotationLineEndOptions>,
) -> AnnotationOptionsBuilder<SetLineEnds<S>>where
S::LineEnds: IsUnset,
Sourcepub fn line_width(self, value: f32) -> AnnotationOptionsBuilder<SetLineWidth<S>>where
S::LineWidth: IsUnset,
pub fn line_width(self, value: f32) -> AnnotationOptionsBuilder<SetLineWidth<S>>where
S::LineWidth: IsUnset,
Sourcepub fn maybe_line_width(
self,
value: Option<f32>,
) -> AnnotationOptionsBuilder<SetLineWidth<S>>where
S::LineWidth: IsUnset,
pub fn maybe_line_width(
self,
value: Option<f32>,
) -> AnnotationOptionsBuilder<SetLineWidth<S>>where
S::LineWidth: IsUnset,
Sourcepub fn color(self, value: Color) -> AnnotationOptionsBuilder<SetColor<S>>where
S::Color: IsUnset,
pub fn color(self, value: Color) -> AnnotationOptionsBuilder<SetColor<S>>where
S::Color: IsUnset,
Sourcepub fn maybe_color(
self,
value: Option<Color>,
) -> AnnotationOptionsBuilder<SetColor<S>>where
S::Color: IsUnset,
pub fn maybe_color(
self,
value: Option<Color>,
) -> AnnotationOptionsBuilder<SetColor<S>>where
S::Color: IsUnset,
Sourcepub fn position(
self,
value: Point3d<f32>,
) -> AnnotationOptionsBuilder<SetPosition<S>>where
S::Position: IsUnset,
pub fn position(
self,
value: Point3d<f32>,
) -> AnnotationOptionsBuilder<SetPosition<S>>where
S::Position: IsUnset,
Sourcepub fn maybe_position(
self,
value: Option<Point3d<f32>>,
) -> AnnotationOptionsBuilder<SetPosition<S>>where
S::Position: IsUnset,
pub fn maybe_position(
self,
value: Option<Point3d<f32>>,
) -> AnnotationOptionsBuilder<SetPosition<S>>where
S::Position: IsUnset,
Sourcepub fn dimension(
self,
value: AnnotationBasicDimension,
) -> AnnotationOptionsBuilder<SetDimension<S>>where
S::Dimension: IsUnset,
pub fn dimension(
self,
value: AnnotationBasicDimension,
) -> AnnotationOptionsBuilder<SetDimension<S>>where
S::Dimension: IsUnset,
Sourcepub fn maybe_dimension(
self,
value: Option<AnnotationBasicDimension>,
) -> AnnotationOptionsBuilder<SetDimension<S>>where
S::Dimension: IsUnset,
pub fn maybe_dimension(
self,
value: Option<AnnotationBasicDimension>,
) -> AnnotationOptionsBuilder<SetDimension<S>>where
S::Dimension: IsUnset,
Sourcepub fn feature_control(
self,
value: AnnotationFeatureControl,
) -> AnnotationOptionsBuilder<SetFeatureControl<S>>where
S::FeatureControl: IsUnset,
pub fn feature_control(
self,
value: AnnotationFeatureControl,
) -> AnnotationOptionsBuilder<SetFeatureControl<S>>where
S::FeatureControl: IsUnset,
Sourcepub fn maybe_feature_control(
self,
value: Option<AnnotationFeatureControl>,
) -> AnnotationOptionsBuilder<SetFeatureControl<S>>where
S::FeatureControl: IsUnset,
pub fn maybe_feature_control(
self,
value: Option<AnnotationFeatureControl>,
) -> AnnotationOptionsBuilder<SetFeatureControl<S>>where
S::FeatureControl: IsUnset,
Sourcepub fn feature_tag(
self,
value: AnnotationFeatureTag,
) -> AnnotationOptionsBuilder<SetFeatureTag<S>>where
S::FeatureTag: IsUnset,
pub fn feature_tag(
self,
value: AnnotationFeatureTag,
) -> AnnotationOptionsBuilder<SetFeatureTag<S>>where
S::FeatureTag: IsUnset,
Sourcepub fn maybe_feature_tag(
self,
value: Option<AnnotationFeatureTag>,
) -> AnnotationOptionsBuilder<SetFeatureTag<S>>where
S::FeatureTag: IsUnset,
pub fn maybe_feature_tag(
self,
value: Option<AnnotationFeatureTag>,
) -> AnnotationOptionsBuilder<SetFeatureTag<S>>where
S::FeatureTag: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for AnnotationOptionsBuilder<S>
impl<S> RefUnwindSafe for AnnotationOptionsBuilder<S>
impl<S> Send for AnnotationOptionsBuilder<S>
impl<S> Sync for AnnotationOptionsBuilder<S>
impl<S> Unpin for AnnotationOptionsBuilder<S>
impl<S> UnsafeUnpin for AnnotationOptionsBuilder<S>
impl<S> UnwindSafe for AnnotationOptionsBuilder<S>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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>
Converts
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>
Converts
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