pub struct TitleBlock {
pub name: String,
pub top: BlockId,
}Expand description
The document’s own registers — a mechanical drawing’s title
block, expected to grow fields (author, revision notes, …). The
singleton exception: never created by an op, no id, no
lifecycle — OpCodes::Document is update-only.
Fields§
§name: String§top: BlockIdThe designated root of the single-canvas view; NULL = no
top yet (an empty document). A register, not a convention,
so two concurrent Wrap Tops converge on the later one’s
root instead of leaving two.
Trait Implementations§
Source§impl Clone for TitleBlock
impl Clone for TitleBlock
Source§fn clone(&self) -> TitleBlock
fn clone(&self) -> TitleBlock
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 TitleBlock
impl Debug for TitleBlock
Source§impl Default for TitleBlock
impl Default for TitleBlock
Source§fn default() -> TitleBlock
fn default() -> TitleBlock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TitleBlock
impl<'de> Deserialize<'de> for TitleBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Entity for TitleBlock
impl Entity for TitleBlock
Source§impl PartialEq for TitleBlock
impl PartialEq for TitleBlock
Source§impl Serialize for TitleBlock
impl Serialize for TitleBlock
impl StructuralPartialEq for TitleBlock
Auto Trait Implementations§
impl Freeze for TitleBlock
impl RefUnwindSafe for TitleBlock
impl Send for TitleBlock
impl Sync for TitleBlock
impl Unpin for TitleBlock
impl UnsafeUnpin for TitleBlock
impl UnwindSafe for TitleBlock
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