pub struct TrueFalseQuestion { /* private fields */ }
Expand description
True/False question type. The amount of answers is fixed to 2, where one answer must have 100 fraction.
Implementations§
Trait Implementations§
Source§impl Clone for TrueFalseQuestion
impl Clone for TrueFalseQuestion
Source§fn clone(&self) -> TrueFalseQuestion
fn clone(&self) -> TrueFalseQuestion
Returns a duplicate of the value. Read more
1.0.0 · 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 TrueFalseQuestion
impl Debug for TrueFalseQuestion
Source§impl From<TrueFalseQuestion> for QuestionType
impl From<TrueFalseQuestion> for QuestionType
Source§fn from(question: TrueFalseQuestion) -> Self
fn from(question: TrueFalseQuestion) -> Self
Converts to this type from the input type.
Source§impl From<TrueFalseQuestion> for Vec<Box<dyn Question>>where
TrueFalseQuestion: Question + 'static,
impl From<TrueFalseQuestion> for Vec<Box<dyn Question>>where
TrueFalseQuestion: Question + 'static,
Source§fn from(question: TrueFalseQuestion) -> Self
fn from(question: TrueFalseQuestion) -> Self
Converts to this type from the input type.
Source§impl<Q> From<TrueFalseQuestion> for Vec<Q>
impl<Q> From<TrueFalseQuestion> for Vec<Q>
Source§fn from(question: TrueFalseQuestion) -> Self
fn from(question: TrueFalseQuestion) -> Self
Converts to this type from the input type.
Source§impl From<TrueFalseQuestion> for Vec<QuestionType>
impl From<TrueFalseQuestion> for Vec<QuestionType>
Source§fn from(question: TrueFalseQuestion) -> Self
fn from(question: TrueFalseQuestion) -> Self
Converts to this type from the input type.
Source§impl Question for TrueFalseQuestion
impl Question for TrueFalseQuestion
Source§fn get_description(&self) -> &str
fn get_description(&self) -> &str
Returns the description of the question.
Source§fn set_text_format(&mut self, format: TextFormat)
fn set_text_format(&mut self, format: TextFormat)
Set the text rendering format
TextFormat
for the question.Auto Trait Implementations§
impl Freeze for TrueFalseQuestion
impl RefUnwindSafe for TrueFalseQuestion
impl Send for TrueFalseQuestion
impl Sync for TrueFalseQuestion
impl Unpin for TrueFalseQuestion
impl UnwindSafe for TrueFalseQuestion
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