pub trait TextObj {
// Required methods
fn build(
id: &str,
header: impl Into<String>,
value: impl Into<String>,
) -> NamedObjectBuilder<TextDescContent, TextContent>;
fn create(
id: &str,
header: impl Into<String>,
value: impl Into<String>,
) -> Self;
fn id(&self) -> &str;
fn header(&self) -> &str;
fn header_mut(&mut self) -> &mut String;
fn value(&self) -> &str;
fn value_mut(&mut self) -> &mut String;
fn into_header(self) -> String;
fn into_value(self) -> String;
fn text_id(&self) -> TextId;
}
Required Methods§
fn build( id: &str, header: impl Into<String>, value: impl Into<String>, ) -> NamedObjectBuilder<TextDescContent, TextContent>
fn create(id: &str, header: impl Into<String>, value: impl Into<String>) -> Self
fn id(&self) -> &str
fn header(&self) -> &str
fn header_mut(&mut self) -> &mut String
fn value(&self) -> &str
fn value_mut(&mut self) -> &mut String
fn into_header(self) -> String
fn into_value(self) -> String
fn text_id(&self) -> TextId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.