pub struct Mark {
pub name: String,
pub type: MarkSpec,
}
Fields§
§name: String
§type: MarkSpec
Implementations§
Source§impl Mark
impl Mark
pub fn new(name: &str, spec: MarkSpec) -> Mark
pub fn set_name(&mut self, name: &str) -> &mut Self
pub fn get_name(&self) -> &str
pub fn set_attrs(&mut self, attrs: HashMap<String, AttributeSpec>) -> &mut Self
pub fn set_attr(&mut self, name: &str, default: Option<Value>) -> &mut Self
pub fn set_desc(&mut self, desc: &str) -> &mut Self
Trait Implementations§
impl Eq for Mark
impl StructuralPartialEq for Mark
Auto Trait Implementations§
impl Freeze for Mark
impl RefUnwindSafe for Mark
impl Send for Mark
impl Sync for Mark
impl Unpin for Mark
impl UnwindSafe for Mark
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