pub struct VizOptions {
pub show_cost: bool,
pub show_pos: bool,
pub highlight_best_path: bool,
pub use_colors: bool,
pub max_nodes: usize,
pub direction: String,
}Expand description
시각화 옵션
Fields§
§show_cost: bool노드에 비용 표시
show_pos: bool노드에 품사 표시
highlight_best_path: bool최적 경로 강조
use_colors: bool노드 타입별 색상 사용
max_nodes: usize최대 노드 수 (0이면 제한 없음)
direction: String그래프 방향 (LR: 왼쪽→오른쪽, TB: 위→아래)
Implementations§
Source§impl VizOptions
impl VizOptions
Sourcepub const fn with_best_path(self, highlight: bool) -> Self
pub const fn with_best_path(self, highlight: bool) -> Self
최적 경로 강조 설정
Sourcepub const fn with_colors(self, use_colors: bool) -> Self
pub const fn with_colors(self, use_colors: bool) -> Self
색상 사용 설정
Sourcepub const fn with_max_nodes(self, max: usize) -> Self
pub const fn with_max_nodes(self, max: usize) -> Self
최대 노드 수 설정
Sourcepub fn with_direction(self, dir: &str) -> Self
pub fn with_direction(self, dir: &str) -> Self
그래프 방향 설정
Trait Implementations§
Source§impl Clone for VizOptions
impl Clone for VizOptions
Source§fn clone(&self) -> VizOptions
fn clone(&self) -> VizOptions
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 VizOptions
impl Debug for VizOptions
Auto Trait Implementations§
impl Freeze for VizOptions
impl RefUnwindSafe for VizOptions
impl Send for VizOptions
impl Sync for VizOptions
impl Unpin for VizOptions
impl UnsafeUnpin for VizOptions
impl UnwindSafe for VizOptions
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more