pub struct NewAnnotationBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> NewAnnotationBuilder<S>
impl<S: State> NewAnnotationBuilder<S>
Sourcepub fn build(self) -> NewAnnotationwhere
S: IsComplete,
pub fn build(self) -> NewAnnotationwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn options(
self,
value: AnnotationOptions,
) -> NewAnnotationBuilder<SetOptions<S>>where
S::Options: IsUnset,
pub fn options(
self,
value: AnnotationOptions,
) -> NewAnnotationBuilder<SetOptions<S>>where
S::Options: IsUnset,
Required.
What should the annotation contain?
Sourcepub fn clobber(self, value: bool) -> NewAnnotationBuilder<SetClobber<S>>where
S::Clobber: IsUnset,
pub fn clobber(self, value: bool) -> NewAnnotationBuilder<SetClobber<S>>where
S::Clobber: IsUnset,
Required.
If true, any existing drawables within the obj will be replaced (the object will be reset)
Sourcepub fn annotation_type(
self,
value: AnnotationType,
) -> NewAnnotationBuilder<SetAnnotationType<S>>where
S::AnnotationType: IsUnset,
pub fn annotation_type(
self,
value: AnnotationType,
) -> NewAnnotationBuilder<SetAnnotationType<S>>where
S::AnnotationType: IsUnset,
Required.
What type of annotation to create.
Auto Trait Implementations§
impl<S> Freeze for NewAnnotationBuilder<S>
impl<S> RefUnwindSafe for NewAnnotationBuilder<S>
impl<S> Send for NewAnnotationBuilder<S>
impl<S> Sync for NewAnnotationBuilder<S>
impl<S> Unpin for NewAnnotationBuilder<S>
impl<S> UnsafeUnpin for NewAnnotationBuilder<S>
impl<S> UnwindSafe for NewAnnotationBuilder<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