pub struct DeltaUpdateBuilder { /* private fields */ }Expand description
델타 업데이트 빌더
Implementations§
Source§impl DeltaUpdateBuilder
impl DeltaUpdateBuilder
Sourcepub const fn new() -> DeltaUpdateBuilder
pub const fn new() -> DeltaUpdateBuilder
새 빌더 생성
Sourcepub fn add(
self,
surface: impl Into<String>,
pos: impl Into<String>,
cost: i16,
) -> DeltaUpdateBuilder
pub fn add( self, surface: impl Into<String>, pos: impl Into<String>, cost: i16, ) -> DeltaUpdateBuilder
엔트리 추가
Sourcepub fn add_with_reading(
self,
surface: impl Into<String>,
pos: impl Into<String>,
cost: i16,
reading: impl Into<String>,
) -> DeltaUpdateBuilder
pub fn add_with_reading( self, surface: impl Into<String>, pos: impl Into<String>, cost: i16, reading: impl Into<String>, ) -> DeltaUpdateBuilder
엔트리 추가 (읽기 포함)
Sourcepub fn remove(self, surface: impl Into<String>) -> DeltaUpdateBuilder
pub fn remove(self, surface: impl Into<String>) -> DeltaUpdateBuilder
엔트리 제거
Sourcepub fn modify(
self,
surface: impl Into<String>,
pos: impl Into<String>,
cost: i16,
) -> DeltaUpdateBuilder
pub fn modify( self, surface: impl Into<String>, pos: impl Into<String>, cost: i16, ) -> DeltaUpdateBuilder
엔트리 수정
Sourcepub fn build(self) -> DeltaUpdate
pub fn build(self) -> DeltaUpdate
델타 업데이트 빌드
Trait Implementations§
Source§impl Default for DeltaUpdateBuilder
impl Default for DeltaUpdateBuilder
Source§fn default() -> DeltaUpdateBuilder
fn default() -> DeltaUpdateBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeltaUpdateBuilder
impl RefUnwindSafe for DeltaUpdateBuilder
impl Send for DeltaUpdateBuilder
impl Sync for DeltaUpdateBuilder
impl Unpin for DeltaUpdateBuilder
impl UnsafeUnpin for DeltaUpdateBuilder
impl UnwindSafe for DeltaUpdateBuilder
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> 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