Struct sgf_render::GobanStyle
source · [−]pub struct GobanStyle { /* private fields */ }Implementations
sourceimpl GobanStyle
impl GobanStyle
pub fn line_color(&self) -> &str
pub fn line_width(&self) -> f64
pub fn hoshi_radius(&self) -> f64
pub fn background_fill(&self) -> &str
pub fn label_color(&self) -> &str
pub fn stone_fill(&self, color: StoneColor) -> Option<&str>
pub fn stone_stroke(&self, color: StoneColor) -> Option<&str>
pub fn markup_color(&self, color: Option<StoneColor>) -> &str
pub fn markup_stroke_width(&self) -> f64
pub fn selected_color(&self, color: Option<StoneColor>) -> &str
pub fn defs(&self) -> Result<Vec<Element>, MakeSvgError>
Trait Implementations
sourceimpl Clone for GobanStyle
impl Clone for GobanStyle
sourcefn clone(&self) -> GobanStyle
fn clone(&self) -> GobanStyle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for GobanStyle
impl Debug for GobanStyle
sourceimpl<'de> Deserialize<'de> for GobanStyle
impl<'de> Deserialize<'de> for GobanStyle
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for GobanStyle
impl Send for GobanStyle
impl Sync for GobanStyle
impl Unpin for GobanStyle
impl UnwindSafe for GobanStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more