pub struct Card {
pub keyword: String,
pub value: CardValue,
pub comment: Option<String>,
}Fields§
§keyword: String§value: CardValue§comment: Option<String>Implementations§
Source§impl Card
impl Card
pub fn new(keyword: String, value: String, comment: Option<String>) -> Self
pub fn set_value(&mut self, new_value: String)
pub fn get_value_clone(&self) -> String
pub fn set_comment(&mut self, new_comment: String)
pub fn get_comment_clone(&self) -> String
pub fn set_keyword(&mut self, new_keyword: String)
pub fn get_keyword_clone(&self) -> String
pub fn write_to<W: Write>( &self, writer: &mut W, bytes_count: &mut i32, ) -> Result<()>
pub fn keyword_ref(&self) -> &str
pub fn comment_ref(&self) -> &str
pub fn parse_card(card_str: String) -> Self
pub fn continue_card(card: &mut Card, card_str: String)
Trait Implementations§
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnsafeUnpin for Card
impl UnwindSafe for Card
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,
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