pub struct ReferenceStyle {
pub wrapper: Wrapper,
pub addressing: Addressing,
pub label: bool,
pub path_style: LinkStyle,
}Expand description
How a durable reference is spelled: a Wrapper, an Addressing, whether
an id link carries a title label, and the path rendering used when
addressing by path. This is the per-workspace default and the per-relation
override (see crate::relation::Relation::style).
Fields§
§wrapper: WrapperThe syntactic wrapper.
addressing: AddressingWhat the reference addresses its target by.
label: boolWhether an id wikilink carries a |Title label (a maintained cache of
the target’s title). Ignored for markdown (its [Title] is intrinsic)
and for alias (the target string is the title).
path_style: LinkStylePath rendering for Addressing::Path — ignored otherwise.
Implementations§
Source§impl ReferenceStyle
impl ReferenceStyle
Sourcepub fn normalized(self) -> Self
pub fn normalized(self) -> Self
Normalize impossible combinations: alias has no markdown spelling (there
is no locator to put in [Title](…)), so a markdown+alias request becomes
wikilink+alias.
Trait Implementations§
Source§impl Clone for ReferenceStyle
impl Clone for ReferenceStyle
Source§fn clone(&self) -> ReferenceStyle
fn clone(&self) -> ReferenceStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReferenceStyle
Source§impl Debug for ReferenceStyle
impl Debug for ReferenceStyle
Source§impl Default for ReferenceStyle
impl Default for ReferenceStyle
impl Eq for ReferenceStyle
Source§impl PartialEq for ReferenceStyle
impl PartialEq for ReferenceStyle
impl StructuralPartialEq for ReferenceStyle
Auto Trait Implementations§
impl Freeze for ReferenceStyle
impl RefUnwindSafe for ReferenceStyle
impl Send for ReferenceStyle
impl Sync for ReferenceStyle
impl Unpin for ReferenceStyle
impl UnsafeUnpin for ReferenceStyle
impl UnwindSafe for ReferenceStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.